Skip to content

Fix ec2 instance recreation issue after manual termination - #1722

Merged
turkenf merged 1 commit into
crossplane-contrib:mainfrom
turkenf:z-t-772
Mar 6, 2025
Merged

Fix ec2 instance recreation issue after manual termination#1722
turkenf merged 1 commit into
crossplane-contrib:mainfrom
turkenf:z-t-772

Conversation

@turkenf

@turkenf turkenf commented Mar 5, 2025

Copy link
Copy Markdown
Collaborator

Description of your changes

This PR fixes ec2 instance recreation issue after manual termination by ignoring the cpu_options and root_block_device fields from LateInitializer.

Fixes: #1306

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Tested recreation case manually with index.docker.io/turkenf/provider-aws:v1.21.0-rc.0.56.gddd4ddd05 and uptest: https://github.com/crossplane-contrib/provider-upjet-aws/actions/runs/13684144410

Signed-off-by: Fatih Türken <turkenf@gmail.com>
@turkenf

turkenf commented Mar 5, 2025

Copy link
Copy Markdown
Collaborator Author

/test-examples="examples/ec2/v1beta2/instance.yaml"

@turkenf
turkenf marked this pull request as ready for review March 5, 2025 20:29

@sergenyalcin sergenyalcin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @turkenf LGTM!

@turkenf
turkenf merged commit 7a26f51 into crossplane-contrib:main Mar 6, 2025
@turkenf
turkenf deleted the z-t-772 branch March 6, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Import EC2 Instance with gp2 leads to iops attribute not supported for root_block_device with volume_type gp2

2 participants