hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.74k stars 9.1k forks source link

[New Data Source]: aws_codeartifact generic asset data_resource #34983

Open evilensky opened 8 months ago

evilensky commented 8 months ago

Description

Allow the use of the AWS provider to download code artifact generic asset packages:

https://docs.aws.amazon.com/codeartifact/latest/ug/publishing-using-generic-packages.html#downloading-generic-package-assets

via a data resource.

The generic asset file would export properties to allow for future operations. An example workflow could be to download a generic asset file that represents a lambda function zip archive and allow aws_lambda_function resource to reference the zip file retrieved from code artifact.

Affected Resource(s) and/or Data Source(s)

aws_codeartifact

Potential Terraform Configuration

data "codeartifact_generic_asset" "lambda_zip" {
  domain          = "artifact_domain"    
  repository      = "repository"
  package_version = "version"
  asset           = "asset.zip"
  output_path     = "notify.zip"
  force_overwrite = true
}

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 8 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue