Configuration Profile
Provides an AppConfig Configuration Profile resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.appconfig.ConfigurationProfile("example", {
applicationId: exampleAwsAppconfigApplication.id,
description: "Example Configuration Profile",
name: "example-configuration-profile-tf",
locationUri: "hosted",
validators: [{
content: exampleAwsLambdaFunction.arn,
type: "LAMBDA",
}],
tags: {
Type: "AppConfig Configuration Profile",
},
});
import pulumi
import pulumi_aws as aws
example = aws.appconfig.ConfigurationProfile("example",
application_id=example_aws_appconfig_application["id"],
description="Example Configuration Profile",
name="example-configuration-profile-tf",
location_uri="hosted",
validators=[{
"content": example_aws_lambda_function["arn"],
"type": "LAMBDA",
}],
tags={
"Type": "AppConfig Configuration Profile",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.AppConfig.ConfigurationProfile("example", new()
{
ApplicationId = exampleAwsAppconfigApplication.Id,
Description = "Example Configuration Profile",
Name = "example-configuration-profile-tf",
LocationUri = "hosted",
Validators = new[]
{
new Aws.AppConfig.Inputs.ConfigurationProfileValidatorArgs
{
Content = exampleAwsLambdaFunction.Arn,
Type = "LAMBDA",
},
},
Tags =
{
{ "Type", "AppConfig Configuration Profile" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appconfig"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appconfig.NewConfigurationProfile(ctx, "example", &appconfig.ConfigurationProfileArgs{
ApplicationId: pulumi.Any(exampleAwsAppconfigApplication.Id),
Description: pulumi.String("Example Configuration Profile"),
Name: pulumi.String("example-configuration-profile-tf"),
LocationUri: pulumi.String("hosted"),
Validators: appconfig.ConfigurationProfileValidatorArray{
&appconfig.ConfigurationProfileValidatorArgs{
Content: pulumi.Any(exampleAwsLambdaFunction.Arn),
Type: pulumi.String("LAMBDA"),
},
},
Tags: pulumi.StringMap{
"Type": pulumi.String("AppConfig Configuration Profile"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.appconfig.ConfigurationProfile;
import com.pulumi.aws.appconfig.ConfigurationProfileArgs;
import com.pulumi.aws.appconfig.inputs.ConfigurationProfileValidatorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ConfigurationProfile("example", ConfigurationProfileArgs.builder()
.applicationId(exampleAwsAppconfigApplication.id())
.description("Example Configuration Profile")
.name("example-configuration-profile-tf")
.locationUri("hosted")
.validators(ConfigurationProfileValidatorArgs.builder()
.content(exampleAwsLambdaFunction.arn())
.type("LAMBDA")
.build())
.tags(Map.of("Type", "AppConfig Configuration Profile"))
.build());
}
}
resources:
example:
type: aws:appconfig:ConfigurationProfile
properties:
applicationId: ${exampleAwsAppconfigApplication.id}
description: Example Configuration Profile
name: example-configuration-profile-tf
locationUri: hosted
validators:
- content: ${exampleAwsLambdaFunction.arn}
type: LAMBDA
tags:
Type: AppConfig Configuration Profile
Import
Using pulumi import
, import AppConfig Configuration Profiles using the configuration profile ID and application ID separated by a colon (:
). For example:
$ pulumi import aws:appconfig/configurationProfile:ConfigurationProfile example 71abcde:11xxxxx
Properties
Application ID. Must be between 4 and 7 characters in length.
The configuration profile ID.
Description of the configuration profile. Can be at most 1024 characters.
The identifier for an Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for hosted configuration types. The identifier can be an KMS key ID, alias, or the Amazon Resource Name (ARN) of the key ID or alias.
URI to locate the configuration. You can specify the AWS AppConfig hosted configuration store, Systems Manager (SSM) document, an SSM Parameter Store parameter, or an Amazon S3 object. For the hosted configuration store, specify hosted
. For an SSM document, specify either the document name in the format ssm-document://<Document_name>
or the ARN. For a parameter, specify either the parameter name in the format ssm-parameter://<Parameter_name>
or the ARN. For an Amazon S3 object, specify the URI in the following format: s3://<bucket>/<objectKey>
.
ARN of an IAM role with permission to access the configuration at the specified location_uri
. A retrieval role ARN is not required for configurations stored in the AWS AppConfig hosted
configuration store. It is required for all other sources that store your configuration.
Set of methods for validating the configuration. Maximum of 2. See Validator below for more details.