New Interested in participating in the HCP Waypoint Private Beta Program? Apply here
  • Infrastructure
    • terraform
    • packer
  • Networking
    • consul
  • Security
    • vault
    • boundary
  • Applications
    • nomad
    • waypoint
    • vagrant
  • HashiCorp Cloud Platform

    A fully managed platform to automate infrastructure on any cloud with HashiCorp products.

    • consul
    • terraform
    • vault
    • packerbeta
    Visit cloud.hashicorp.com
  • Overview
  • Tutorials
  • Docs
  • CLI
  • Plugins
  • Community
GitHub
Download
    • v0.8.x (latest)
    • v0.7.x
    • v0.6.x
    • v0.5.x
    • v0.4.x
    • v0.3.x
    • v0.2.x
    • v0.1.x
  • aws-ec2
  • aws-ecs
  • aws-lambda
  • aws-ssm
  • azure-container-instance
  • docker
  • exec
  • google-cloud-run
  • helm
  • kubernetes
  • nomad
  • pack
  • terraform-cloud
  • vault

The Waypoint website is being redesigned to help you find what you are looking for more effectively.

Type '/' to Search

»Azure Container Instances

For a step by step tutorial, visit HashiCorp Learn.

»Builders

Azure Container Instances use Docker images for building, which are generated by these builders:

  • Docker
  • Cloud Native Buildpacks

»azure-container-instance (platform)

Deploy a container to Azure Container Instances.

»Interface

  • Input: docker.Image
  • Output: aci.Deployment

»Examples

deploy {
  use "azure-container-instance" {
    resource_group = "resource-group-name"
    location       = "westus"
    ports          = [8080]

    capacity {
      memory = "1024"
      cpu_count = 4
    }

    volume {
      name = "vol1"
      path = "/consul"
      read_only = true

      git_repo {
        repository = "https://github.com/hashicorp/consul"
        revision = "v1.8.3"
      }
    }
  }
}
deploy {
  use "azure-container-instance" {
    resource_group = "resource-group-name"
    location       = "westus"
    ports          = [8080]

    capacity {
      memory = "1024"
      cpu_count = 4
    }

    volume {
      name = "vol1"
      path = "/consul"
      read_only = true

      git_repo {
        repository = "https://github.com/hashicorp/consul"
        revision = "v1.8.3"
      }
    }
  }
}

»Required Parameters

These parameters are used in the use stanza for this plugin.

»capacity

The capacity details for the container.

  • Type: aci.Capacity

»capacity.cpu

Number of CPUs to allocate the container, min 1, max based on resource availability of the region.

»capacity.memory

Memory to allocate the container specified in MB, min 1024, max based on resource availability of the region.

»resource_group

The resource group to deploy the container to.

  • Type: string

»volume

The volume details for a container.

  • Type: list of aci.Volume

»volume.azure_file_share

The details for the Azure file share volume.

»volume.git_repo

The details for GitHub repo to mount as a volume.

»volume.name

The name of the volume to mount into the container.

»volume.path

The path to mount the volume to in the container.

»volume.read_only

Specify if the volume is read only.

»Optional Parameters

These parameters are used in the use stanza for this plugin.

»location

The resource location to deploy the container instance to.

  • Type: string
  • Optional

»managed_identity

The managed identity assigned to the container group.

  • Type: string
  • Optional

»ports

The ports the container is listening on, the first port in this list will be used by the entrypoint binary to direct traffic to your application.

  • Type: list of int
  • Optional

»static_environment

Environment variables to control broad modes of the application.

Environment variables that are meant to configure the application in a static way. This might be control an image that has multiple modes of operation, selected via environment variable. Most configuration should use the waypoint config commands.

  • Type: map of string to string
  • Optional

»subscription_id

The Azure subscription id.

If not set uses the environment variable AZURE_SUBSCRIPTION_ID.

  • Type: string
  • Optional

»Output Attributes

Output attributes can be used in your waypoint.hcl as variables via artifact or deploy.

»container_group

  • Type: aci.Deployment_ContainerGroup

»id

  • Type: string

»url

  • Type: string
github logoEdit this page

Using Waypoint

The best way to understand what Waypoint can enable for your projects is to give it a try.

Waypoint tutorials
Waypoint documentation
Tutorial

Get Started - Kubernetes

Build, deploy, and release applications to a Kubernetes cluster.

View
Tutorial

Introduction to Waypoint

Waypoint enables you to publish any application to any platform with a single file and a single command.

View

Waypoint is maintained by HashiCorp, Inc.

View Code of Conduct
DocumentationCLI ReferenceTutorialsIntegrations
All systems normal