Skip to content

Commit

Permalink
Allow associating additional CIDR blocks to VPC (#26)
Browse files Browse the repository at this point in the history
* Allow associating additional VPC CIDR blocks to VPC

* Also add to provisioner
  • Loading branch information
ctso authored Mar 15, 2024
1 parent 9e6e997 commit d1af56f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Resources:
- ec2:DeleteFlowLogs
- ec2:CreateFlowLogs
- ec2:CreateVpc
- ec2:AssociateVpcCidrBlock
- ec2:ReleaseAddress
- ec2:CreateTags
- ec2:RunInstances
Expand Down
1 change: 1 addition & 0 deletions union-ai-admin/aws/script/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ def create_provisioner_policy(role_type):
Action("ec2", "DeleteFlowLogs"),
Action("ec2", "CreateFlowLogs"),
Action("ec2", "CreateVpc"),
Action("ec2", "AssociateVpcCidrBlock"),
Action("ec2", "ReleaseAddress"),
Action("ec2", "CreateTags"),
Action("ec2", "RunInstances"),
Expand Down
1 change: 1 addition & 0 deletions union-ai-admin/aws/union-ai-admin-role.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ Resources:
- 'ec2:DeleteVpc'
- 'ec2:CreateSubnet'
- 'ec2:DescribeVpcAttribute'
- 'ec2:AssociateVpcCidrBlock'
Resource:
- !Sub 'arn:aws:ec2:${AWS::Region}:${AWS::AccountId}:vpc/*'
- Sid: VisualEditor9
Expand Down

0 comments on commit d1af56f

Please sign in to comment.