Skip to content

Commit 661b809

Browse files
authored
Merge pull request #429 from ericzbeard/merge-community
Re-organized the repo so that there are no aws, community, services directories
2 parents a35830c + 4e49074 commit 661b809

File tree

353 files changed

+3130
-3445
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

353 files changed

+3130
-3445
lines changed

aws/services/CloudFormation/MacrosExamples/Boto3/macro.json renamed to CloudFormation/MacrosExamples/Boto3/macro.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
},
1313
"MacroFunction": {
1414
"Type": "AWS::Serverless::Function",
15+
"Metadata": {
16+
"guard": {
17+
"SuppressedRules": [
18+
"LAMBDA_INSIDE_VPC",
19+
"LAMBDA_FUNCTION_PUBLIC_ACCESS_PROHIBITED"
20+
]
21+
}
22+
},
1523
"Properties": {
1624
"Runtime": "python3.11",
1725
"CodeUri": "lambda",

aws/services/CloudFormation/MacrosExamples/Boto3/macro.yaml renamed to CloudFormation/MacrosExamples/Boto3/macro.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ Resources:
1111

1212
MacroFunction:
1313
Type: AWS::Serverless::Function
14+
Metadata:
15+
guard:
16+
SuppressedRules:
17+
- LAMBDA_INSIDE_VPC
18+
- LAMBDA_FUNCTION_PUBLIC_ACCESS_PROHIBITED
1419
Properties:
1520
Runtime: python3.11
1621
CodeUri: lambda

aws/services/CloudFormation/MacrosExamples/Count/template.json renamed to CloudFormation/MacrosExamples/Count/template.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
},
1818
"CountMacroFunction": {
1919
"Type": "AWS::Serverless::Function",
20+
"Metadata": {
21+
"guard": {
22+
"SuppressedRules": [
23+
"LAMBDA_INSIDE_VPC",
24+
"LAMBDA_FUNCTION_PUBLIC_ACCESS_PROHIBITED"
25+
]
26+
}
27+
},
2028
"Properties": {
2129
"CodeUri": "src",
2230
"Handler": "index.handler",

aws/services/CloudFormation/MacrosExamples/Count/template.yaml renamed to CloudFormation/MacrosExamples/Count/template.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ Resources:
1414

1515
CountMacroFunction:
1616
Type: AWS::Serverless::Function
17+
Metadata:
18+
guard:
19+
SuppressedRules:
20+
- LAMBDA_INSIDE_VPC
21+
- LAMBDA_FUNCTION_PUBLIC_ACCESS_PROHIBITED
1722
Properties:
1823
CodeUri: src
1924
Handler: index.handler
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
{
2+
"AWSTemplateFormatVersion": "2010-09-09",
3+
"Parameters": {
4+
"TestCount": {
5+
"Type": "Number",
6+
"Default": 3
7+
},
8+
"TestList": {
9+
"Type": "CommaDelimitedList",
10+
"Default": "foo,bar"
11+
}
12+
},
13+
"Transform": "Count",
14+
"Resources": {
15+
"BucketToCopyA": {
16+
"Type": "AWS::S3::Bucket",
17+
"Metadata": {
18+
"Comment": "Suppressing typical rules for sample purposes only",
19+
"guard": {
20+
"SuppressedRules": [
21+
"S3_BUCKET_LOGGING_ENABLED",
22+
"S3_BUCKET_PUBLIC_READ_PROHIBITED",
23+
"S3_BUCKET_PUBLIC_WRITE_PROHIBITED",
24+
"S3_BUCKET_REPLICATION_ENABLED",
25+
"S3_BUCKET_VERSIONING_ENABLED",
26+
"S3_BUCKET_DEFAULT_LOCK_ENABLED",
27+
"S3_BUCKET_SERVER_SIDE_ENCRYPTION_ENABLED"
28+
]
29+
}
30+
},
31+
"Properties": {
32+
"Tags": [
33+
{
34+
"Key": "TestKey",
35+
"Value": "my bucket %d"
36+
}
37+
]
38+
},
39+
"Count": 3
40+
},
41+
"BucketToCopyB": {
42+
"Type": "AWS::S3::Bucket",
43+
"Metadata": {
44+
"Comment": "Suppressing typical rules for sample purposes only",
45+
"guard": {
46+
"SuppressedRules": [
47+
"S3_BUCKET_LOGGING_ENABLED",
48+
"S3_BUCKET_PUBLIC_READ_PROHIBITED",
49+
"S3_BUCKET_PUBLIC_WRITE_PROHIBITED",
50+
"S3_BUCKET_REPLICATION_ENABLED",
51+
"S3_BUCKET_VERSIONING_ENABLED",
52+
"S3_BUCKET_DEFAULT_LOCK_ENABLED",
53+
"S3_BUCKET_SERVER_SIDE_ENCRYPTION_ENABLED"
54+
]
55+
}
56+
},
57+
"Properties": {
58+
"Tags": [
59+
{
60+
"Key": "TestKey",
61+
"Value": "my %s bucket %d"
62+
}
63+
]
64+
},
65+
"Count": [
66+
"foo",
67+
"bar"
68+
]
69+
},
70+
"BucketToCopyC": {
71+
"Type": "AWS::S3::Bucket",
72+
"Metadata": {
73+
"Comment": "Suppressing typical rules for sample purposes only",
74+
"guard": {
75+
"SuppressedRules": [
76+
"S3_BUCKET_LOGGING_ENABLED",
77+
"S3_BUCKET_PUBLIC_READ_PROHIBITED",
78+
"S3_BUCKET_PUBLIC_WRITE_PROHIBITED",
79+
"S3_BUCKET_REPLICATION_ENABLED",
80+
"S3_BUCKET_VERSIONING_ENABLED",
81+
"S3_BUCKET_DEFAULT_LOCK_ENABLED",
82+
"S3_BUCKET_SERVER_SIDE_ENCRYPTION_ENABLED"
83+
]
84+
}
85+
},
86+
"Properties": {
87+
"Tags": [
88+
{
89+
"Key": "TestKey",
90+
"Value": "my bucket %d"
91+
}
92+
]
93+
},
94+
"Count": {
95+
"Ref": "TestCount"
96+
}
97+
},
98+
"BucketToCopyD": {
99+
"Type": "AWS::S3::Bucket",
100+
"Metadata": {
101+
"Comment": "Suppressing typical rules for sample purposes only",
102+
"guard": {
103+
"SuppressedRules": [
104+
"S3_BUCKET_LOGGING_ENABLED",
105+
"S3_BUCKET_PUBLIC_READ_PROHIBITED",
106+
"S3_BUCKET_PUBLIC_WRITE_PROHIBITED",
107+
"S3_BUCKET_REPLICATION_ENABLED",
108+
"S3_BUCKET_VERSIONING_ENABLED",
109+
"S3_BUCKET_DEFAULT_LOCK_ENABLED",
110+
"S3_BUCKET_SERVER_SIDE_ENCRYPTION_ENABLED"
111+
]
112+
}
113+
},
114+
"Properties": {
115+
"Tags": [
116+
{
117+
"Key": "TestKey",
118+
"Value": "my %s bucket %d"
119+
}
120+
]
121+
},
122+
"Count": {
123+
"Ref": "TestList"
124+
}
125+
}
126+
}
127+
}
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
AWSTemplateFormatVersion: "2010-09-09"
2+
3+
Parameters:
4+
TestCount:
5+
Type: Number
6+
Default: 3
7+
8+
TestList:
9+
Type: CommaDelimitedList
10+
Default: foo,bar
11+
12+
Transform: Count
13+
14+
Resources:
15+
BucketToCopyA:
16+
Type: AWS::S3::Bucket
17+
Metadata:
18+
Comment: Suppressing typical rules for sample purposes only
19+
guard:
20+
SuppressedRules:
21+
- S3_BUCKET_LOGGING_ENABLED
22+
- S3_BUCKET_PUBLIC_READ_PROHIBITED
23+
- S3_BUCKET_PUBLIC_WRITE_PROHIBITED
24+
- S3_BUCKET_REPLICATION_ENABLED
25+
- S3_BUCKET_VERSIONING_ENABLED
26+
- S3_BUCKET_DEFAULT_LOCK_ENABLED
27+
- S3_BUCKET_SERVER_SIDE_ENCRYPTION_ENABLED
28+
Properties:
29+
Tags:
30+
- Key: TestKey
31+
Value: my bucket %d
32+
Count: 3
33+
34+
BucketToCopyB:
35+
Type: AWS::S3::Bucket
36+
Metadata:
37+
Comment: Suppressing typical rules for sample purposes only
38+
guard:
39+
SuppressedRules:
40+
- S3_BUCKET_LOGGING_ENABLED
41+
- S3_BUCKET_PUBLIC_READ_PROHIBITED
42+
- S3_BUCKET_PUBLIC_WRITE_PROHIBITED
43+
- S3_BUCKET_REPLICATION_ENABLED
44+
- S3_BUCKET_VERSIONING_ENABLED
45+
- S3_BUCKET_DEFAULT_LOCK_ENABLED
46+
- S3_BUCKET_SERVER_SIDE_ENCRYPTION_ENABLED
47+
Properties:
48+
Tags:
49+
- Key: TestKey
50+
Value: my %s bucket %d
51+
Count:
52+
- foo
53+
- bar
54+
55+
BucketToCopyC:
56+
Type: AWS::S3::Bucket
57+
Metadata:
58+
Comment: Suppressing typical rules for sample purposes only
59+
guard:
60+
SuppressedRules:
61+
- S3_BUCKET_LOGGING_ENABLED
62+
- S3_BUCKET_PUBLIC_READ_PROHIBITED
63+
- S3_BUCKET_PUBLIC_WRITE_PROHIBITED
64+
- S3_BUCKET_REPLICATION_ENABLED
65+
- S3_BUCKET_VERSIONING_ENABLED
66+
- S3_BUCKET_DEFAULT_LOCK_ENABLED
67+
- S3_BUCKET_SERVER_SIDE_ENCRYPTION_ENABLED
68+
Properties:
69+
Tags:
70+
- Key: TestKey
71+
Value: my bucket %d
72+
Count: !Ref TestCount
73+
74+
BucketToCopyD:
75+
Type: AWS::S3::Bucket
76+
Metadata:
77+
Comment: Suppressing typical rules for sample purposes only
78+
guard:
79+
SuppressedRules:
80+
- S3_BUCKET_LOGGING_ENABLED
81+
- S3_BUCKET_PUBLIC_READ_PROHIBITED
82+
- S3_BUCKET_PUBLIC_WRITE_PROHIBITED
83+
- S3_BUCKET_REPLICATION_ENABLED
84+
- S3_BUCKET_VERSIONING_ENABLED
85+
- S3_BUCKET_DEFAULT_LOCK_ENABLED
86+
- S3_BUCKET_SERVER_SIDE_ENCRYPTION_ENABLED
87+
Properties:
88+
Tags:
89+
- Key: TestKey
90+
Value: my %s bucket %d
91+
Count: !Ref TestList

aws/services/CloudFormation/MacrosExamples/DateFunctions/date.json renamed to CloudFormation/MacrosExamples/DateFunctions/date.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@
4343
},
4444
"TransformFunction": {
4545
"Type": "AWS::Lambda::Function",
46+
"Metadata": {
47+
"guard": {
48+
"SuppressedRules": [
49+
"LAMBDA_INSIDE_VPC",
50+
"LAMBDA_FUNCTION_PUBLIC_ACCESS_PROHIBITED"
51+
]
52+
}
53+
},
4654
"Properties": {
4755
"Code": {
4856
"ZipFile": {
@@ -61,6 +69,13 @@
6169
},
6270
"TransformFunctionPermissions": {
6371
"Type": "AWS::Lambda::Permission",
72+
"Metadata": {
73+
"guard": {
74+
"SuppressedRules": [
75+
"LAMBDA_FUNCTION_PUBLIC_ACCESS_PROHIBITED"
76+
]
77+
}
78+
},
6479
"Properties": {
6580
"Action": "lambda:InvokeFunction",
6681
"FunctionName": {

aws/services/CloudFormation/MacrosExamples/DateFunctions/date.yaml renamed to CloudFormation/MacrosExamples/DateFunctions/date.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ Resources:
3131
# Function we use for transformaton
3232
TransformFunction:
3333
Type: AWS::Lambda::Function
34+
Metadata:
35+
guard:
36+
SuppressedRules:
37+
- LAMBDA_INSIDE_VPC
38+
- LAMBDA_FUNCTION_PUBLIC_ACCESS_PROHIBITED
3439
Properties:
3540
Code:
3641
ZipFile: !Rain::Embed handler.py
@@ -41,6 +46,10 @@ Resources:
4146
# Tranform function permissions
4247
TransformFunctionPermissions:
4348
Type: AWS::Lambda::Permission
49+
Metadata:
50+
guard:
51+
SuppressedRules:
52+
- LAMBDA_FUNCTION_PUBLIC_ACCESS_PROHIBITED
4453
Properties:
4554
Action: lambda:InvokeFunction
4655
FunctionName: !GetAtt TransformFunction.Arn

aws/services/CloudFormation/MacrosExamples/DateFunctions/date_example.json renamed to CloudFormation/MacrosExamples/DateFunctions/date_example.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@
2323
"Resources": {
2424
"S3Bucket": {
2525
"Type": "AWS::S3::Bucket",
26+
"Metadata": {
27+
"Comment": "Suppressing typical rules for sample purposes only",
28+
"guard": {
29+
"SuppressedRules": [
30+
"S3_BUCKET_LOGGING_ENABLED",
31+
"S3_BUCKET_PUBLIC_READ_PROHIBITED",
32+
"S3_BUCKET_PUBLIC_WRITE_PROHIBITED",
33+
"S3_BUCKET_REPLICATION_ENABLED",
34+
"S3_BUCKET_VERSIONING_ENABLED",
35+
"S3_BUCKET_DEFAULT_LOCK_ENABLED",
36+
"S3_BUCKET_SERVER_SIDE_ENCRYPTION_ENABLED"
37+
]
38+
}
39+
},
2640
"Properties": {
2741
"Tags": [
2842
{

aws/services/CloudFormation/MacrosExamples/DateFunctions/date_example.yaml renamed to CloudFormation/MacrosExamples/DateFunctions/date_example.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ Parameters:
2323
Resources:
2424
S3Bucket:
2525
Type: AWS::S3::Bucket
26+
Metadata:
27+
Comment: Suppressing typical rules for sample purposes only
28+
guard:
29+
SuppressedRules:
30+
- S3_BUCKET_LOGGING_ENABLED
31+
- S3_BUCKET_PUBLIC_READ_PROHIBITED
32+
- S3_BUCKET_PUBLIC_WRITE_PROHIBITED
33+
- S3_BUCKET_REPLICATION_ENABLED
34+
- S3_BUCKET_VERSIONING_ENABLED
35+
- S3_BUCKET_DEFAULT_LOCK_ENABLED
36+
- S3_BUCKET_SERVER_SIDE_ENCRYPTION_ENABLED
2637
Properties:
2738
Tags:
2839
- Key: Current

aws/services/CloudFormation/MacrosExamples/DatetimeNow/datetimenow.json renamed to CloudFormation/MacrosExamples/DatetimeNow/datetimenow.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
"Resources": {
55
"TransformFunction": {
66
"Type": "AWS::Serverless::Function",
7+
"Metadata": {
8+
"guard": {
9+
"SuppressedRules": [
10+
"LAMBDA_INSIDE_VPC",
11+
"LAMBDA_FUNCTION_PUBLIC_ACCESS_PROHIBITED"
12+
]
13+
}
14+
},
715
"Properties": {
816
"Runtime": "python3.11",
917
"Handler": "index.handler",

aws/services/CloudFormation/MacrosExamples/DatetimeNow/datetimenow.yaml renamed to CloudFormation/MacrosExamples/DatetimeNow/datetimenow.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ Transform: AWS::Serverless-2016-10-31
55
Resources:
66
TransformFunction:
77
Type: AWS::Serverless::Function
8+
Metadata:
9+
guard:
10+
SuppressedRules:
11+
- LAMBDA_INSIDE_VPC
12+
- LAMBDA_FUNCTION_PUBLIC_ACCESS_PROHIBITED
813
Properties:
914
Runtime: python3.11
1015
Handler: index.handler

0 commit comments

Comments
 (0)