aws_ssm_association doesn't support import #9981
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/ssm
Issues and PRs that pertain to the ssm service.
Milestone
Community Note
Description
Terraform version: 0.12.7
Provider Version: 2.26.0
As the title of the issue suggests, it appears that the resource aws_ssm_association doesn't support import.
I'm going through converting multiple AWS accounts into terraform for infrastructure management. This means that in all of my accounts I've already got an association when it comes to enabling SSM inventory management.
I'm fairly sure I have the definition right, but there is no way for me to be sure that I am not missing something from the AWS created association.
I'd like to be able to import the resource and then run a
terraform plan
to see what changes terraform thinks it needs to make (if any)Currently the only workaround is to delete the existing association and pray that you haven't missed something important in your terraform resource.
New or Affected Resource(s)
Potential Terraform Configuration
Something like
terraform import aws_ssm_association.inventory ${Existing_Association_ID}
might be a nice way to do this?References
The text was updated successfully, but these errors were encountered: