-
Notifications
You must be signed in to change notification settings - Fork 2.5k
add integration test for LMI functions #3863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
| Note: This test is skipped until 12/01/2024 because the managed policy required for | ||
| the default operator role is not available until then. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this note (also: 2024???)
| Statement: | ||
| - Effect: Allow | ||
| Action: | ||
| - ec2:TerminateInstances |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Operator role doesn't need ec2:TerminateInstances anymore, since the instances will be terminated by the service-linked role.,
| - ec2:DescribeAvailabilityZones | ||
| - ec2:DescribeCapacityReservations | ||
| - ec2:DescribeInstanceTypes | ||
| - ec2:DescribeInstanceTypeOfferings | ||
| - ec2:DescribeSecurityGroups | ||
| - ec2:DescribeSubnets | ||
| - ec2:DescribeInstances | ||
| - ec2:DescribeInstanceStatus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to not have these in alphabetical order? (DescribeInstances before DescribeInstanceTypes for example) (or at least to have all the DescribeInstance<Something> together).
| - !Ref SubnetId | ||
| SecurityGroupIds: | ||
| - !Ref SecurityGroup | ||
| KmsKeyArn: !Ref KMSKeyArn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have a Capacity provider without KmsKeyArn too, since it's not needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also without CapacityProviderName too, considering that the only thing really required is the VpcConfig?
Issue #, if available
Add integration test for deploying application with CapacityProvider and LMI functions
Description of changes
Add test data and test cases for successfully deployment of resources.
Description of how you validated changes
Checklist
Examples?
Please reach out in the comments if you want to add an example. Examples will be
added to
sam initthrough aws/aws-sam-cli-app-templates.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.