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

[AWS::EC2::Instance] - [Enhancement] - Implement GetAtt for the Instance ID #1651

Closed
r-heimann opened this issue May 2, 2023 · 4 comments
Closed
Labels
enhancement New feature or request

Comments

@r-heimann
Copy link

r-heimann commented May 2, 2023

Name of the resource

AWS::EC2::Instance

Description

Currently AWS::EC2::Instance only supports Ref to get the Instance ID. Implementing this would be great.

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html

Related to #68

@r-heimann r-heimann added the enhancement New feature or request label May 2, 2023
@r-heimann
Copy link
Author

Looks like its implemented now:

Id
The ID of the instance.

@r-heimann
Copy link
Author

Although it currently doesn't seem to work in eu-central-1:

Template error: resource Instance does not support attribute type Id in Fn::GetAtt

@r-heimann r-heimann reopened this Mar 15, 2024
@r-heimann
Copy link
Author

They fixed the documentation, but its still not implemented.

@r-heimann r-heimann changed the title (AWS::EC2::Instance) Implement GetAtt for the Instance ID [AWS::EC2::Instance] - [Enhancement] - Implement GetAtt for the Instance ID Apr 17, 2024
@r-heimann
Copy link
Author

r-heimann commented May 8, 2024

Seems like someone finally decided to implement this: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instance.html

InstanceId
The ID of the instance.

Works in eu-central-1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant