AWS AppConfig Hosted Configuration Version

This page shows how to write Terraform and CloudFormation for AppConfig Hosted Configuration Version and write them securely.

aws_appconfig_hosted_configuration_version (Terraform)

The Hosted Configuration Version in AppConfig can be configured in Terraform with the resource name aws_appconfig_hosted_configuration_version. The following sections describe 1 example of how to use the resource and its parameters.

Example Usage from GitHub

config.tf#L23
resource "aws_appconfig_hosted_configuration_version" "current" {
  application_id           = aws_appconfig_application.this.id
  configuration_profile_id = aws_appconfig_configuration_profile.this.configuration_profile_id
  content_type             = "application/json"

  content = jsonencode(jsondecode(file(var.config_file)))

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

The following arguments are supported:

  • application_id - (Required, Forces new resource) The application ID.
  • configuration_profile_id - (Required, Forces new resource) The configuration profile ID.
  • content - (Required, Forces new resource) The content of the configuration or the configuration data.
  • content_type - (Required, Forces new resource) A standard MIME type describing the format of the configuration content. For more information, see Content-Type.
  • description - (Optional, Forces new resource) A description of the configuration.

In addition to all arguments above, the following attributes are exported:

  • arn - The Amazon Resource Name (ARN) of the AppConfig hosted configuration version.
  • id - The AppConfig application ID, configuration profile ID, and version number separated by a slash (/).
  • version_number - The version number of the hosted configuration.

Explanation in Terraform Registry

Provides an AppConfig Hosted Configuration Version resource.

AWS::AppConfig::HostedConfigurationVersion (CloudFormation)

The HostedConfigurationVersion in AppConfig can be configured in CloudFormation with the resource name AWS::AppConfig::HostedConfigurationVersion. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

Explanation in CloudFormation Registry

Create a new configuration in the AWS AppConfig hosted configuration store. Configurations must be 64 KB or smaller. The AWS AppConfig hosted configuration store provides the following benefits over other configuration store options.

  • You don't need to set up and configure other services such as Amazon Simple Storage Service (Amazon S3) or Parameter Store.

  • You don't need to configure AWS Identity and Access Management (IAM) permissions to use the configuration store.

  • You can store configurations in any content type.

  • There is no cost to use the store.

  • You can create a configuration and add it to the store when you create a configuration profile.

Frequently asked questions

What is AWS AppConfig Hosted Configuration Version?

AWS AppConfig Hosted Configuration Version is a resource for AppConfig of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS AppConfig Hosted Configuration Version?

For Terraform, the easyas314159/lobbyboy source code example is useful. See the Terraform Example section for further details.