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

Improved resource import #498

Merged

Conversation

patrykorwat
Copy link
Contributor

Improved resource import. In some cases Terraform is unable to perform resource refresh and the only option that is left is a regular resource import. That import will not import attributes into TF file but should be sufficient for resources with small number of attributes e.g. aws_iam_role_policy_attachment .

The fix might solve other resources that return error Read resource response is null for resource ... e.g. #482 #489 #473 and others

fixes #467

@sergeylanzman
Copy link
Collaborator

@meshuga Thanks you PR
sorry for delay I need checking about import command changes.

@sergeylanzman sergeylanzman merged commit 859692b into GoogleCloudPlatform:master May 30, 2020
@patrykorwat
Copy link
Contributor Author

No problem! I believe it'll help solving a lot of issues within the tool but is pretty critical part of the tool.

@sergeylanzman
Copy link
Collaborator

yes, I working now add retry on read resource for robust process

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.

iam_role_policy_attachments/AWS-managed policies-attached-to-roles missing
2 participants