DevOps > AWS 1 second ago

My user data and IAM role auto removed after ASG lunch instance

My user data and IAM role auto removed after ASG lunch instance

289 views . 1 answers . 0 likes . 0 shares Showeb Sarwar 1 answers

Hi, After I prepared my golden AMI by attaching IAM role granting SSM access and user data, I delete golden instance.My ASG lunch a new instance using golden image.However, after lunch I cant see the attached IAM role and user data.I have used lunch config to attach my golden ami. I have also attached SSM role to my lunch configuration

In summery,my auto lunch instance does not keep user data and IAM role which was configured in golden ami.

Any thoughts?

Thanks

Showeb

profilepic.png

Answers (1)


profilepic.png
Kapil Kapil Best Answer 1 year ago

Check if you are using the right launch configuration for your ASG. Under most cases this should work

289 views . 0 shares