hashicorp / hashicorp/packer-plugin-amazon

S3 data source

Open
#301 0 comments 15 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
91
Forks
141
Avg merge
2d 18h
Merged PRs (30d)
3

Description

#### Community Note

Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) 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

It would be great to have AWS S3 data source in addition to SSM Parameter store and Secrets manager. I can't find any implementations in Packer plugins.

#### Use Case(s)

Our use case is following:
* Create some resources for packer (subnet, security group, etc) using terraform
* Export them to S3 as json object
* Read the data from S3 using packer data source

While this is possible to implement using SSM, we would like not to depend on service we are not using in other production systems. At the moment we are manually copying file from S3 using aws cli, and passing it as vars, while using data source would be easier to use.

#### Potential configuration

```hcl
data "amazon-s3" "basic-example" {
bucket = "acme-bucket"
key = "packer-export/config.json"
}

locals {
body = data.amazon-s3.basic-example.body
version_id = data.amazon-s3.basic-example.version_id
}
```

#### Potential References
https://developer.hashicorp.com/packer/plugins/datasources/amazon/parameterstore
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/s3_object

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.