Skip to content

Commit dfc6b74

Browse files
authored
Restrict MQ security group ingress to VPC CIDR in integration test (#3884)
Co-authored-by: Chengjun Li <>
1 parent 04ab7c8 commit dfc6b74

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

integration/resources/templates/combination/function_with_mq.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,23 @@ Resources:
6060
- IpProtocol: tcp
6161
FromPort: 8162
6262
ToPort: 8162
63-
CidrIp: 0.0.0.0/0
63+
CidrIp: 10.0.0.0/16
6464
- IpProtocol: tcp
6565
FromPort: 61617
6666
ToPort: 61617
67-
CidrIp: 0.0.0.0/0
67+
CidrIp: 10.0.0.0/16
6868
- IpProtocol: tcp
6969
FromPort: 5671
7070
ToPort: 5671
71-
CidrIp: 0.0.0.0/0
71+
CidrIp: 10.0.0.0/16
7272
- IpProtocol: tcp
7373
FromPort: 61614
7474
ToPort: 61614
75-
CidrIp: 0.0.0.0/0
75+
CidrIp: 10.0.0.0/16
7676
- IpProtocol: tcp
7777
FromPort: 8883
7878
ToPort: 8883
79-
CidrIp: 0.0.0.0/0
79+
CidrIp: 10.0.0.0/16
8080

8181
MyLambdaExecutionRole:
8282
Type: AWS::IAM::Role

integration/resources/templates/combination/function_with_mq_using_autogen_role.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,23 @@ Resources:
6060
- IpProtocol: tcp
6161
FromPort: 8162
6262
ToPort: 8162
63-
CidrIp: 0.0.0.0/0
63+
CidrIp: 10.0.0.0/16
6464
- IpProtocol: tcp
6565
FromPort: 61617
6666
ToPort: 61617
67-
CidrIp: 0.0.0.0/0
67+
CidrIp: 10.0.0.0/16
6868
- IpProtocol: tcp
6969
FromPort: 5671
7070
ToPort: 5671
71-
CidrIp: 0.0.0.0/0
71+
CidrIp: 10.0.0.0/16
7272
- IpProtocol: tcp
7373
FromPort: 61614
7474
ToPort: 61614
75-
CidrIp: 0.0.0.0/0
75+
CidrIp: 10.0.0.0/16
7676
- IpProtocol: tcp
7777
FromPort: 8883
7878
ToPort: 8883
79-
CidrIp: 0.0.0.0/0
79+
CidrIp: 10.0.0.0/16
8080

8181
MyMqBroker:
8282
Properties:

tests/translator/input/graphqlapi_function_by_id.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Resources:
1919
Properties:
2020
ApiId: !GetAtt SuperCoolAPI.ApiId
2121
Code: this is my epic code
22-
DataSourceName: some-cool-datasource
22+
DataSourceName: someCoolDataSource
2323
Name: MyFunction
2424
Runtime:
2525
Name: APPSYNC_JS

tests/translator/output/aws-cn/graphqlapi_function_by_id.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
]
1010
},
1111
"Code": "this is my epic code",
12-
"DataSourceName": "some-cool-datasource",
12+
"DataSourceName": "someCoolDataSource",
1313
"Name": "MyFunction",
1414
"Runtime": {
1515
"Name": "APPSYNC_JS",

tests/translator/output/aws-us-gov/graphqlapi_function_by_id.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
]
1010
},
1111
"Code": "this is my epic code",
12-
"DataSourceName": "some-cool-datasource",
12+
"DataSourceName": "someCoolDataSource",
1313
"Name": "MyFunction",
1414
"Runtime": {
1515
"Name": "APPSYNC_JS",

tests/translator/output/graphqlapi_function_by_id.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
]
1010
},
1111
"Code": "this is my epic code",
12-
"DataSourceName": "some-cool-datasource",
12+
"DataSourceName": "someCoolDataSource",
1313
"Name": "MyFunction",
1414
"Runtime": {
1515
"Name": "APPSYNC_JS",

0 commit comments

Comments
 (0)