Skip to content

Conversation

@vicheey
Copy link
Contributor

@vicheey vicheey commented Dec 17, 2025

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 init through 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.

@vicheey vicheey requested a review from a team as a code owner December 17, 2025 00:38
Comment on lines +44 to +45
Note: This test is skipped until 12/01/2024 because the managed policy required for
the default operator role is not available until then.
Copy link
Contributor

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
Copy link
Contributor

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.,

Comment on lines +40 to +47
- ec2:DescribeAvailabilityZones
- ec2:DescribeCapacityReservations
- ec2:DescribeInstanceTypes
- ec2:DescribeInstanceTypeOfferings
- ec2:DescribeSecurityGroups
- ec2:DescribeSubnets
- ec2:DescribeInstances
- ec2:DescribeInstanceStatus
Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants