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

Add support for importing resource aws_s3_bucket_object #9903

Closed
jvelonis opened this issue Aug 28, 2019 · 5 comments · Fixed by #10036
Closed

Add support for importing resource aws_s3_bucket_object #9903

jvelonis opened this issue Aug 28, 2019 · 5 comments · Fixed by #10036
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/s3 Issues and PRs that pertain to the s3 service.
Milestone

Comments

@jvelonis
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Resource aws_s3_bucket_object doesn't support import (AWS provider version 2.25.0). I use Terraform to provision some S3 folders and objects, and it would be useful to be able to import existing objects.

New or Affected Resource(s)

  • aws_s3_bucket_object

Potential Terraform Configuration

terraform import aws_s3_bucket_object.foo my_bucket/path/to/foo
@jvelonis jvelonis added the enhancement Requests to existing resources that expand the functionality or scope. label Aug 28, 2019
@ghost ghost added the service/s3 Issues and PRs that pertain to the s3 service. label Aug 28, 2019
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 28, 2019
@bflad bflad removed the needs-triage Waiting for first response or review from a maintainer. label Aug 29, 2019
@dhdersch
Copy link

dhdersch commented Sep 6, 2019

I'm interested in working on this. I'll submit a pull request when I have one ready.

@dhdersch
Copy link

dhdersch commented Sep 6, 2019

I made a new pull request here. I'm new to this so bear with me :)

#10036

@github-actions
Copy link

This functionality has been released in v3.52.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@jskinne3
Copy link

jskinne3 commented Jul 31, 2021

Thank you! I'm in need of this functionality. I could use some help upgrading.

In my provider block I set version = "3.52.0" per the above documentation. When running init I get a warning that this method of specifying the version is deprecated, but it appears to work. However, when I attempt to import an aws_s3_bucket_object I get the following error:

Error: Could not load plugin
│ 
│ 
│ Plugin reinitialization required. Please run "terraform init".
│ 
│ Plugins are external binaries that Terraform uses to access and manipulate
│ resources. The configuration provided requires plugins which can't be
│ located,
│ don't satisfy the version constraints, or are otherwise incompatible.
│ 
│ Terraform automatically discovers provider requirements from your
│ configuration, including providers used in child modules. To see the
│ requirements and constraints, run "terraform providers".
│ 
│ failed to instantiate provider "registry.terraform.io/hashicorp/aws" to
│ obtain schema: there is no package for registry.terraform.io/hashicorp/aws
│ 3.52.0 cached in .terraform/providers

UPDATE: never mind, as of a few hours later importing is working without version set

@github-actions
Copy link

github-actions bot commented Sep 1, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/s3 Issues and PRs that pertain to the s3 service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants