Skip to content
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

EC2 MachineImage: support for cross account ssm parameter #31554

Open
2 tasks
danilodesolesonar opened this issue Sep 25, 2024 · 1 comment
Open
2 tasks

EC2 MachineImage: support for cross account ssm parameter #31554

danilodesolesonar opened this issue Sep 25, 2024 · 1 comment
Labels
@aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2

Comments

@danilodesolesonar
Copy link

Describe the feature

MachineImage.from_ssm_parameter(parameter_name=....) doesn't support cross-account parameters. You cannot provide an ARN. I believe the module should support fetching of AMI ID from shared SSM parameters.

Use Case

It's very likely to publish SSM parameters with AMI ID from a centralised account, when creating new EC2 instances MachineImage.from_ssm_parameter(parameter_name=....) should support the lookup of them.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.159.1 (build c66f4e3)

Environment details (OS name and version, etc.)

Linux

@danilodesolesonar danilodesolesonar added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Sep 25, 2024
@github-actions github-actions bot added the @aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud label Sep 25, 2024
@pahud pahud self-assigned this Sep 25, 2024
@pahud
Copy link
Contributor

pahud commented Sep 25, 2024

Yes it makes sense. aws-ssm actually supports cross-account sharing but I am not sure if MachineImage allows you to specify that. We need more experiment with that so any further inputs here is welcome and appreciated.

Making this a p2, please help us prioritize with 👍 .

@pahud pahud added p2 effort/small Small work item – less than a day of effort and removed needs-triage This issue or PR still needs to be triaged. labels Sep 25, 2024
@pahud pahud removed their assignment Sep 25, 2024
@pahud pahud added effort/medium Medium work item – several days of effort and removed effort/small Small work item – less than a day of effort labels Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ec2 Related to Amazon Elastic Compute Cloud effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

No branches or pull requests

2 participants