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

Allow import of AWS managed instances generated by hybrid activations #18531

Open
ghost opened this issue Apr 1, 2021 · 1 comment
Open

Allow import of AWS managed instances generated by hybrid activations #18531

ghost opened this issue Apr 1, 2021 · 1 comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ssm Issues and PRs that pertain to the ssm service.

Comments

@ghost
Copy link

ghost commented Apr 1, 2021

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

0.14.8

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

resource "aws_ssm_managedinstance" "server" {
 
  tags = {
    Name = "server_name"
    Owner = "somebody"
    Patch Group = "RHEL_prod_1"
  }

}

References

@ghost ghost added enhancement Requests to existing resources that expand the functionality or scope. new service/ssm Issues and PRs that pertain to the ssm service. labels Apr 1, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Apr 1, 2021
@breathingdust breathingdust removed needs-triage Waiting for first response or review from a maintainer. new labels Sep 4, 2021
@ORuessel
Copy link

@breathingdust are there any new information is this planned ? thanks and best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ssm Issues and PRs that pertain to the ssm service.
Projects
None yet
Development

No branches or pull requests

2 participants