Allow import of AWS managed instances generated by hybrid activations #18531
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/ssm
Issues and PRs that pertain to the ssm service.
This issue was originally opened by @tamkawing as hashicorp/terraform#28259. It was migrated here as a result of the provider split. The original body of the issue is below.
Current Terraform Version
Use-cases
Would like to use Terraform to import/manage AWS Managed Instances in SSM Fleet Manager (eg, tagging) that weren't created with Terraform (https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_activation) aka. created manually.
Attempted Solutions
Terraform has a resource aws_ssm_activation (https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_activation) that supports tagging, but 1) would likely depend on having first activated the managed instances with Terraform and thus won't allow us to manage existing activated systems 2) would not allow unique tags in the case of multiple activations at once. aws_instance does not appear to apply to instances created from hybrid activations that only Fleet Manager knows about, either.
Proposal
Having something like aws_ssm_managedinstance that could be imported, and then managed with something like
References
The text was updated successfully, but these errors were encountered: