Skip to content

Commit 407c763

Browse files
committed
[Test] In test_build_image, specify the subnet and security group for the build instance.
1 parent 953f7d5 commit 407c763

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/iam_policies/user-role.cfn.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ Resources:
534534
- ec2:DescribeImages
535535
- ec2:DescribeInstanceTypeOfferings
536536
- ec2:DescribeInstanceTypes
537+
- ec2:DescribeSecurityGroups
537538
Resource: '*'
538539
- Sid: IAM
539540
Effect: Allow

tests/integration-tests/tests/createami/test_createami/test_build_image/image.config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Build:
1111
InstanceRole: {{ instance_role }}
1212
InstanceType: {{ instance }}
1313
ParentImage: {{ parent_image }}
14+
SecurityGroupIds:
15+
- {{ default_vpc_security_group_id }}
16+
SubnetId: {{ public_subnet_id }}
1417
Tags:
1518
- Key: dummyBuildTag
1619
Value: dummyBuildTag

0 commit comments

Comments
 (0)