Skip to content

Commit 1460ca9

Browse files
author
bob
committed
Initial code push of seperated repo
1 parent 309f8fc commit 1460ca9

File tree

14 files changed

+972
-0
lines changed

14 files changed

+972
-0
lines changed

AWSBucketDump.zip

10.4 KB
Binary file not shown.

CloudFormation/backup.json

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"AWSTemplateFormatVersion": "2010-09-09",
3+
"Resources": {
4+
"S3Bucket": {
5+
"Type": "AWS::S3::Bucket",
6+
"Properties": {
7+
"AccessControl": "PublicRead",
8+
"WebsiteConfiguration": {
9+
"RedirectAllRequestsTo": {
10+
"HostName": "www.firstyearmatters.info"
11+
}
12+
}
13+
},
14+
"DeletionPolicy": "Delete"
15+
},
16+
"BucketPolicy": {
17+
"Type": "AWS::S3::BucketPolicy",
18+
"Properties": {
19+
"PolicyDocument": {
20+
"Id": "MyPolicy",
21+
"Version": "2012-10-17",
22+
"Statement": [
23+
{
24+
"Sid": "PublicReadForGetBucketObjects",
25+
"Effect": "Allow",
26+
"Principal": "*",
27+
"Action": "s3:GetObject",
28+
"Resource": {
29+
"Fn::Join": [
30+
"",
31+
[
32+
"arn:aws:s3:::",
33+
{
34+
"Ref": "S3Bucket"
35+
},
36+
"/*"
37+
]
38+
]
39+
}
40+
}
41+
]
42+
},
43+
"Bucket": {
44+
"Ref": "S3Bucket"
45+
}
46+
}
47+
}
48+
},
49+
"Outputs": {
50+
"WebsiteURL": {
51+
"Value": {
52+
"Fn::GetAtt": [
53+
"S3Bucket",
54+
"WebsiteURL"
55+
]
56+
},
57+
"Description": "URL for website hosted on S3"
58+
},
59+
"S3BucketSecureURL": {
60+
"Value": {
61+
"Fn::Join": [
62+
"",
63+
[
64+
"https://",
65+
{
66+
"Fn::GetAtt": [
67+
"S3Bucket",
68+
"DomainName"
69+
]
70+
}
71+
]
72+
]
73+
},
74+
"Description": "Name of S3 bucket to hold website content"
75+
}
76+
}
77+
}

CloudFormation/outputbackup.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
resource "S3" "steve" {
2+
bucket = "steve"
3+
acl = "public-read"
4+
policy = <<EOF
5+
{
6+
"Version" : "2012-10-17",
7+
"Id" : "MyPolicy",
8+
"Statement": [{"Sid":"PublicReadForGetBucketObjects","Effect":"Allow","Principal":"*","Action":"s3:GetObject","Resource":"arn:aws:s3:::steve/*"}
9+
]
10+
}
11+
EOF
12+
website {redirect_all_requests_to = "www.firstyearmatters.info" }
13+
14+
}

CloudFormation/site

Whitespace-only changes.

CloudFormation/site.html

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"AWSTemplateFormatVersion": "2010-09-09",
3+
"Resources": {
4+
"S3Bucket": {
5+
"Type": "AWS::S3::Bucket",
6+
"Properties": {
7+
"AccessControl": "PublicRead",
8+
"WebsiteConfiguration": {"RedirectAllRequestsTo" : {"HostName":"www.firstyearmatters.info"}}
9+
},
10+
"DeletionPolicy": "Delete"
11+
},
12+
"BucketPolicy": {
13+
"Type": "AWS::S3::BucketPolicy",
14+
"Properties": {
15+
"PolicyDocument": {
16+
"Id": "MyPolicy",
17+
"Version": "2012-10-17",
18+
"Statement": [
19+
{
20+
"Sid": "PublicReadForGetBucketObjects",
21+
"Effect": "Allow",
22+
"Principal": "*",
23+
"Action": "s3:GetObject",
24+
"Resource": {
25+
"Fn::Join": [
26+
"",
27+
[
28+
"arn:aws:s3:::",
29+
{
30+
"Ref": "S3Bucket"
31+
},
32+
"/*"
33+
]
34+
]
35+
}
36+
}
37+
]
38+
},
39+
"Bucket": {
40+
"Ref": "S3Bucket"
41+
}
42+
}
43+
}
44+
},
45+
"Outputs": {
46+
"WebsiteURL": {
47+
"Value": {
48+
"Fn::GetAtt": [
49+
"S3Bucket",
50+
"WebsiteURL"
51+
]
52+
},
53+
"Description": "URL for website hosted on S3"
54+
},
55+
"S3BucketSecureURL": {
56+
"Value": {
57+
"Fn::Join": [
58+
"",
59+
[
60+
"https://",
61+
{
62+
"Fn::GetAtt": [
63+
"S3Bucket",
64+
"DomainName"
65+
]
66+
}
67+
]
68+
]
69+
},
70+
"Description": "Name of S3 bucket to hold website content"
71+
}
72+
}
73+
}

CloudFormation/site.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"AWSTemplateFormatVersion": "2010-09-09",
3+
"Resources": {
4+
"S3Bucket": {
5+
"Type": "AWS::S3::Bucket",
6+
"Properties": {
7+
"AccessControl": "PublicRead",
8+
"WebsiteConfiguration": {"RedirectAllRequestsTo" : {"HostName":"www.firstyearmatters.info"}}
9+
},
10+
"DeletionPolicy": "Delete"
11+
},
12+
"BucketPolicy": {
13+
"Type": "AWS::S3::BucketPolicy",
14+
"Properties": {
15+
"PolicyDocument": {
16+
"Id": "MyPolicy",
17+
"Version": "2012-10-17",
18+
"Statement": [
19+
{
20+
"Sid": "PublicReadForGetBucketObjects",
21+
"Effect": "Allow",
22+
"Principal": "*",
23+
"Action": "s3:GetObject",
24+
"Resource": {
25+
"Fn::Join": [
26+
"",
27+
[
28+
"arn:aws:s3:::",
29+
{
30+
"Ref": "S3Bucket"
31+
},
32+
"/*"
33+
]
34+
]
35+
}
36+
}
37+
]
38+
},
39+
"Bucket": {
40+
"Ref": "S3Bucket"
41+
}
42+
}
43+
}
44+
},
45+
"Outputs": {
46+
"WebsiteURL": {
47+
"Value": {
48+
"Fn::GetAtt": [
49+
"S3Bucket",
50+
"WebsiteURL"
51+
]
52+
},
53+
"Description": "URL for website hosted on S3"
54+
},
55+
"S3BucketSecureURL": {
56+
"Value": {
57+
"Fn::Join": [
58+
"",
59+
[
60+
"https://",
61+
{
62+
"Fn::GetAtt": [
63+
"S3Bucket",
64+
"DomainName"
65+
]
66+
}
67+
]
68+
]
69+
},
70+
"Description": "Name of S3 bucket to hold website content"
71+
}
72+
}
73+
}

CloudFormation/site.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)