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

Source for aws_s3_bucket_object does not expand ~/<path> #3856

Closed
ckelner opened this issue Nov 11, 2015 · 1 comment · Fixed by #3910
Closed

Source for aws_s3_bucket_object does not expand ~/<path> #3856

ckelner opened this issue Nov 11, 2015 · 1 comment · Fixed by #3910

Comments

@ckelner
Copy link

ckelner commented Nov 11, 2015

It appears that the aws_s3_bucket_object resource does not expand the user's home directory ~/ for the source argument.

I get the an error when defining:

resource "aws_s3_bucket_object" "secret_file" {
  provider = "aws.primary"
  bucket = "${aws_s3_bucket.secret.bucket}"
  key = "secrets"
  source = "~/.abc/secret"
}

Error below:

* aws_s3_bucket_object.secret_file: Error opening S3 bucket object source (~/.abc/secret): open ~/.abc/secret: no such file or directory

I saw what I think is a somewhat a related issue for aws instances a long time ago, wondering if a similar fix is needed here? Referencing: #179

@ghost
Copy link

ghost commented Apr 30, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants