Open mooseracerPT opened 1 year ago
cc @LikithaVemulapalli
Hello @mooseracerPT , apologies for the late response, currently we do not support any modify operations for instance resource, from the initial error, I can see that it triggered ModifyInstanceMetadataOptions
, I'm not getting any errors upon creating an instance with Instance.spec.metadataOptions.instanceMetadataTags
enabled, can you please share the yaml file that you used to create the resource. If you had created a resource with default tags and then modified that resource then you will get errors as there is no functionality implemented to handle such scenarios.
Issues go stale after 180d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 60d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://github.com/aws-controllers-k8s/community.
/lifecycle stale
Stale issues rot after 60d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 60d of inactivity.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://github.com/aws-controllers-k8s/community.
/lifecycle rotten
Issues go stale after 180d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 60d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://github.com/aws-controllers-k8s/community.
/lifecycle stale
Describe the bug When trying to set
Instance.spec.metadataOptions.instanceMetadataTags="enabled"
the EC2 API will throw an exception because the defaultResourceTags that get automatically added to the Instance fail the API's regex check.Steps to reproduce
services.k8s.aws/controller-version=ec2-v1.0.1
orservices.k8s.aws/namespace=myNamespace
aws ec2 modify-instance-metadata-options --instance-id i-0773be38e88b12345 --instance-metadata-tags enabled
The EC2 API will throw an error.
The same error will show up in the controller logs if you tried to enable it via Instance.spec.metadataOptions.instanceMetadataTags.
Expected outcome The EC2 API should report something like
Environment