mirror of
https://github.com/floci-io/floci.git
synced 2026-12-06 03:28:18 -05:00
fix(ec2): fill ec2:AccepterVpc and ec2:RequesterVpc for VPC peering requests (#10253)
Under IAM enforcement a VPC peering request carried neither key, so a policy scoped by either side of the peering refused what it should allow. Each key is now the ARN of the VPC on that side, in its own Region and account: from the connection EC2 holds for Accept, Reject, Delete and ModifyVpcPeeringConnectionOptions, and from the request for the connection CreateVpcPeeringConnection makes. The generator reads an ARN key named as another type with a word before it from the structure member that begins with the key's name, opted in for EC2. Create's parameters are joined to the record's sides by AWS's own sample request and response on the API reference page, vendored by tools/aws/fetch_ec2_request_samples.py. Closes #8366
This commit is contained in:
1 parent
eb7bdb0a4d
commit
e41bbd9351
19 files changed
+1345
-42
No files matched your search
@@ -92,6 +92,9 @@ on:
|
||||
- 'tools/aws/sources/ec2-id-examples.json'
|
||||
- 'tools/aws/fetch_ec2_id_examples.py'
|
||||
- 'tools/aws/test_fetch_ec2_id_examples.py'
|
||||
- 'tools/aws/sources/ec2-request-samples.json'
|
||||
- 'tools/aws/fetch_ec2_request_samples.py'
|
||||
- 'tools/aws/test_fetch_ec2_request_samples.py'
|
||||
- 'tools/aws/fetch_ssm_session_permissions.py'
|
||||
- 'tools/aws/sources/ssm-session-permissions.json'
|
||||
- 'tools/aws/test_fetch_ssm_session_permissions.py'
|
||||
|
||||
Reference in new issue
Block a user