Commit cf89d0f
authored
feat(ec2): instance support passing IAM instance profile (#32073)
### Issue # (if applicable)
Closes #8348
### Reason for this change
- Use only 1 IAM instance profile for multiple instances
- Passing role create too many instance profile
### Description of changes
- `ec2.Instance` support `instanceProfile` param
### Description of how you validated changes
- unit test
- integ test
### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*1 parent d2e0b29 commit cf89d0f
File tree
15 files changed
+33479
-8
lines changed- packages
- @aws-cdk-testing/framework-integ/test/aws-ec2/test
- integ.instance-iam-profile.js.snapshot
- asset.a1acfc2b5f4f6b183fd2bb9863f486bc5edef6a357b355a070d9a0e502df418c
- asset.b98abee59e034ed29eeb601684dc34752baa86509a7d457d72305d4e19ecc80b.bundle
- aws-cdk-lib/aws-ec2
- lib
- test
15 files changed
+33479
-8
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments