FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

atlas_artifact

Provides a Data Source to access to deployment artifacts managed by Atlas. This can be used to dynamically configure instantiation and provisioning of resources.

Example Usage

An artifact can be created that has metadata representing an AMI in AWS. This AMI can be used to configure an instance. Any changes to this artifact will trigger a change to that instance.

# Read the AMI
data "atlas_artifact" "web" {
    name = "hashicorp/web"
    type = "amazon.image"
    build = "latest"
    metadata {
        arch = "386"
    }
}

# Start our instance with the dynamic ami value
# Remember to include the AWS region as it is part of the full ID
resource "aws_instance" "app" {
    ami = "${data.atlas_artifact.web.metadata_full.region-us-east-1}"
    ...
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:


See the source of this document at Terraform.io