Try AWS Native preview for resources not in the classic version.
aws.imagebuilder.InfrastructureConfiguration
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Manages an Image Builder Infrastructure Configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.imagebuilder.InfrastructureConfiguration("example", {
description: "example description",
instanceProfileName: exampleAwsIamInstanceProfile.name,
instanceTypes: [
"t2.nano",
"t3.micro",
],
keyPair: exampleAwsKeyPair.keyName,
name: "example",
securityGroupIds: [exampleAwsSecurityGroup.id],
snsTopicArn: exampleAwsSnsTopic.arn,
subnetId: main.id,
terminateInstanceOnFailure: true,
logging: {
s3Logs: {
s3BucketName: exampleAwsS3Bucket.bucket,
s3KeyPrefix: "logs",
},
},
tags: {
foo: "bar",
},
});
import pulumi
import pulumi_aws as aws
example = aws.imagebuilder.InfrastructureConfiguration("example",
description="example description",
instance_profile_name=example_aws_iam_instance_profile["name"],
instance_types=[
"t2.nano",
"t3.micro",
],
key_pair=example_aws_key_pair["keyName"],
name="example",
security_group_ids=[example_aws_security_group["id"]],
sns_topic_arn=example_aws_sns_topic["arn"],
subnet_id=main["id"],
terminate_instance_on_failure=True,
logging={
"s3Logs": {
"s3BucketName": example_aws_s3_bucket["bucket"],
"s3KeyPrefix": "logs",
},
},
tags={
"foo": "bar",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/imagebuilder"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := imagebuilder.NewInfrastructureConfiguration(ctx, "example", &imagebuilder.InfrastructureConfigurationArgs{
Description: pulumi.String("example description"),
InstanceProfileName: pulumi.Any(exampleAwsIamInstanceProfile.Name),
InstanceTypes: pulumi.StringArray{
pulumi.String("t2.nano"),
pulumi.String("t3.micro"),
},
KeyPair: pulumi.Any(exampleAwsKeyPair.KeyName),
Name: pulumi.String("example"),
SecurityGroupIds: pulumi.StringArray{
exampleAwsSecurityGroup.Id,
},
SnsTopicArn: pulumi.Any(exampleAwsSnsTopic.Arn),
SubnetId: pulumi.Any(main.Id),
TerminateInstanceOnFailure: pulumi.Bool(true),
Logging: &imagebuilder.InfrastructureConfigurationLoggingArgs{
S3Logs: &imagebuilder.InfrastructureConfigurationLoggingS3LogsArgs{
S3BucketName: pulumi.Any(exampleAwsS3Bucket.Bucket),
S3KeyPrefix: pulumi.String("logs"),
},
},
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.ImageBuilder.InfrastructureConfiguration("example", new()
{
Description = "example description",
InstanceProfileName = exampleAwsIamInstanceProfile.Name,
InstanceTypes = new[]
{
"t2.nano",
"t3.micro",
},
KeyPair = exampleAwsKeyPair.KeyName,
Name = "example",
SecurityGroupIds = new[]
{
exampleAwsSecurityGroup.Id,
},
SnsTopicArn = exampleAwsSnsTopic.Arn,
SubnetId = main.Id,
TerminateInstanceOnFailure = true,
Logging = new Aws.ImageBuilder.Inputs.InfrastructureConfigurationLoggingArgs
{
S3Logs = new Aws.ImageBuilder.Inputs.InfrastructureConfigurationLoggingS3LogsArgs
{
S3BucketName = exampleAwsS3Bucket.Bucket,
S3KeyPrefix = "logs",
},
},
Tags =
{
{ "foo", "bar" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.imagebuilder.InfrastructureConfiguration;
import com.pulumi.aws.imagebuilder.InfrastructureConfigurationArgs;
import com.pulumi.aws.imagebuilder.inputs.InfrastructureConfigurationLoggingArgs;
import com.pulumi.aws.imagebuilder.inputs.InfrastructureConfigurationLoggingS3LogsArgs;
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 InfrastructureConfiguration("example", InfrastructureConfigurationArgs.builder()
.description("example description")
.instanceProfileName(exampleAwsIamInstanceProfile.name())
.instanceTypes(
"t2.nano",
"t3.micro")
.keyPair(exampleAwsKeyPair.keyName())
.name("example")
.securityGroupIds(exampleAwsSecurityGroup.id())
.snsTopicArn(exampleAwsSnsTopic.arn())
.subnetId(main.id())
.terminateInstanceOnFailure(true)
.logging(InfrastructureConfigurationLoggingArgs.builder()
.s3Logs(InfrastructureConfigurationLoggingS3LogsArgs.builder()
.s3BucketName(exampleAwsS3Bucket.bucket())
.s3KeyPrefix("logs")
.build())
.build())
.tags(Map.of("foo", "bar"))
.build());
}
}
resources:
example:
type: aws:imagebuilder:InfrastructureConfiguration
properties:
description: example description
instanceProfileName: ${exampleAwsIamInstanceProfile.name}
instanceTypes:
- t2.nano
- t3.micro
keyPair: ${exampleAwsKeyPair.keyName}
name: example
securityGroupIds:
- ${exampleAwsSecurityGroup.id}
snsTopicArn: ${exampleAwsSnsTopic.arn}
subnetId: ${main.id}
terminateInstanceOnFailure: true
logging:
s3Logs:
s3BucketName: ${exampleAwsS3Bucket.bucket}
s3KeyPrefix: logs
tags:
foo: bar
Create InfrastructureConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InfrastructureConfiguration(name: string, args: InfrastructureConfigurationArgs, opts?: CustomResourceOptions);
@overload
def InfrastructureConfiguration(resource_name: str,
args: InfrastructureConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InfrastructureConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_profile_name: Optional[str] = None,
name: Optional[str] = None,
instance_metadata_options: Optional[InfrastructureConfigurationInstanceMetadataOptionsArgs] = None,
instance_types: Optional[Sequence[str]] = None,
key_pair: Optional[str] = None,
logging: Optional[InfrastructureConfigurationLoggingArgs] = None,
description: Optional[str] = None,
resource_tags: Optional[Mapping[str, str]] = None,
security_group_ids: Optional[Sequence[str]] = None,
sns_topic_arn: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
terminate_instance_on_failure: Optional[bool] = None)
func NewInfrastructureConfiguration(ctx *Context, name string, args InfrastructureConfigurationArgs, opts ...ResourceOption) (*InfrastructureConfiguration, error)
public InfrastructureConfiguration(string name, InfrastructureConfigurationArgs args, CustomResourceOptions? opts = null)
public InfrastructureConfiguration(String name, InfrastructureConfigurationArgs args)
public InfrastructureConfiguration(String name, InfrastructureConfigurationArgs args, CustomResourceOptions options)
type: aws:imagebuilder:InfrastructureConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InfrastructureConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InfrastructureConfigurationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InfrastructureConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InfrastructureConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InfrastructureConfigurationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var infrastructureConfigurationResource = new Aws.ImageBuilder.InfrastructureConfiguration("infrastructureConfigurationResource", new()
{
InstanceProfileName = "string",
Name = "string",
InstanceMetadataOptions = new Aws.ImageBuilder.Inputs.InfrastructureConfigurationInstanceMetadataOptionsArgs
{
HttpPutResponseHopLimit = 0,
HttpTokens = "string",
},
InstanceTypes = new[]
{
"string",
},
KeyPair = "string",
Logging = new Aws.ImageBuilder.Inputs.InfrastructureConfigurationLoggingArgs
{
S3Logs = new Aws.ImageBuilder.Inputs.InfrastructureConfigurationLoggingS3LogsArgs
{
S3BucketName = "string",
S3KeyPrefix = "string",
},
},
Description = "string",
ResourceTags =
{
{ "string", "string" },
},
SecurityGroupIds = new[]
{
"string",
},
SnsTopicArn = "string",
SubnetId = "string",
Tags =
{
{ "string", "string" },
},
TerminateInstanceOnFailure = false,
});
example, err := imagebuilder.NewInfrastructureConfiguration(ctx, "infrastructureConfigurationResource", &imagebuilder.InfrastructureConfigurationArgs{
InstanceProfileName: pulumi.String("string"),
Name: pulumi.String("string"),
InstanceMetadataOptions: &imagebuilder.InfrastructureConfigurationInstanceMetadataOptionsArgs{
HttpPutResponseHopLimit: pulumi.Int(0),
HttpTokens: pulumi.String("string"),
},
InstanceTypes: pulumi.StringArray{
pulumi.String("string"),
},
KeyPair: pulumi.String("string"),
Logging: &imagebuilder.InfrastructureConfigurationLoggingArgs{
S3Logs: &imagebuilder.InfrastructureConfigurationLoggingS3LogsArgs{
S3BucketName: pulumi.String("string"),
S3KeyPrefix: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
ResourceTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
SnsTopicArn: pulumi.String("string"),
SubnetId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TerminateInstanceOnFailure: pulumi.Bool(false),
})
var infrastructureConfigurationResource = new InfrastructureConfiguration("infrastructureConfigurationResource", InfrastructureConfigurationArgs.builder()
.instanceProfileName("string")
.name("string")
.instanceMetadataOptions(InfrastructureConfigurationInstanceMetadataOptionsArgs.builder()
.httpPutResponseHopLimit(0)
.httpTokens("string")
.build())
.instanceTypes("string")
.keyPair("string")
.logging(InfrastructureConfigurationLoggingArgs.builder()
.s3Logs(InfrastructureConfigurationLoggingS3LogsArgs.builder()
.s3BucketName("string")
.s3KeyPrefix("string")
.build())
.build())
.description("string")
.resourceTags(Map.of("string", "string"))
.securityGroupIds("string")
.snsTopicArn("string")
.subnetId("string")
.tags(Map.of("string", "string"))
.terminateInstanceOnFailure(false)
.build());
infrastructure_configuration_resource = aws.imagebuilder.InfrastructureConfiguration("infrastructureConfigurationResource",
instance_profile_name="string",
name="string",
instance_metadata_options={
"httpPutResponseHopLimit": 0,
"httpTokens": "string",
},
instance_types=["string"],
key_pair="string",
logging={
"s3Logs": {
"s3BucketName": "string",
"s3KeyPrefix": "string",
},
},
description="string",
resource_tags={
"string": "string",
},
security_group_ids=["string"],
sns_topic_arn="string",
subnet_id="string",
tags={
"string": "string",
},
terminate_instance_on_failure=False)
const infrastructureConfigurationResource = new aws.imagebuilder.InfrastructureConfiguration("infrastructureConfigurationResource", {
instanceProfileName: "string",
name: "string",
instanceMetadataOptions: {
httpPutResponseHopLimit: 0,
httpTokens: "string",
},
instanceTypes: ["string"],
keyPair: "string",
logging: {
s3Logs: {
s3BucketName: "string",
s3KeyPrefix: "string",
},
},
description: "string",
resourceTags: {
string: "string",
},
securityGroupIds: ["string"],
snsTopicArn: "string",
subnetId: "string",
tags: {
string: "string",
},
terminateInstanceOnFailure: false,
});
type: aws:imagebuilder:InfrastructureConfiguration
properties:
description: string
instanceMetadataOptions:
httpPutResponseHopLimit: 0
httpTokens: string
instanceProfileName: string
instanceTypes:
- string
keyPair: string
logging:
s3Logs:
s3BucketName: string
s3KeyPrefix: string
name: string
resourceTags:
string: string
securityGroupIds:
- string
snsTopicArn: string
subnetId: string
tags:
string: string
terminateInstanceOnFailure: false
InfrastructureConfiguration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The InfrastructureConfiguration resource accepts the following input properties:
- Instance
Profile stringName - Name of IAM Instance Profile.
- Description string
- Description for the configuration.
- Instance
Metadata InfrastructureOptions Configuration Instance Metadata Options - Configuration block with instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. Detailed below.
- Instance
Types List<string> - Set of EC2 Instance Types.
- Key
Pair string - Name of EC2 Key Pair.
- Logging
Infrastructure
Configuration Logging - Configuration block with logging settings. Detailed below.
- Name string
Name for the configuration.
The following arguments are optional:
- Dictionary<string, string>
- Key-value map of resource tags to assign to infrastructure created by the configuration.
- Security
Group List<string>Ids - Set of EC2 Security Group identifiers.
- Sns
Topic stringArn - Amazon Resource Name (ARN) of SNS Topic.
- Subnet
Id string - EC2 Subnet identifier. Also requires
security_group_ids
argument. - Dictionary<string, string>
- Key-value map of resource tags to assign to the configuration. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Terminate
Instance boolOn Failure - Enable if the instance should be terminated when the pipeline fails. Defaults to
false
.
- Instance
Profile stringName - Name of IAM Instance Profile.
- Description string
- Description for the configuration.
- Instance
Metadata InfrastructureOptions Configuration Instance Metadata Options Args - Configuration block with instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. Detailed below.
- Instance
Types []string - Set of EC2 Instance Types.
- Key
Pair string - Name of EC2 Key Pair.
- Logging
Infrastructure
Configuration Logging Args - Configuration block with logging settings. Detailed below.
- Name string
Name for the configuration.
The following arguments are optional:
- map[string]string
- Key-value map of resource tags to assign to infrastructure created by the configuration.
- Security
Group []stringIds - Set of EC2 Security Group identifiers.
- Sns
Topic stringArn - Amazon Resource Name (ARN) of SNS Topic.
- Subnet
Id string - EC2 Subnet identifier. Also requires
security_group_ids
argument. - map[string]string
- Key-value map of resource tags to assign to the configuration. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Terminate
Instance boolOn Failure - Enable if the instance should be terminated when the pipeline fails. Defaults to
false
.
- instance
Profile StringName - Name of IAM Instance Profile.
- description String
- Description for the configuration.
- instance
Metadata InfrastructureOptions Configuration Instance Metadata Options - Configuration block with instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. Detailed below.
- instance
Types List<String> - Set of EC2 Instance Types.
- key
Pair String - Name of EC2 Key Pair.
- logging
Infrastructure
Configuration Logging - Configuration block with logging settings. Detailed below.
- name String
Name for the configuration.
The following arguments are optional:
- Map<String,String>
- Key-value map of resource tags to assign to infrastructure created by the configuration.
- security
Group List<String>Ids - Set of EC2 Security Group identifiers.
- sns
Topic StringArn - Amazon Resource Name (ARN) of SNS Topic.
- subnet
Id String - EC2 Subnet identifier. Also requires
security_group_ids
argument. - Map<String,String>
- Key-value map of resource tags to assign to the configuration. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - terminate
Instance BooleanOn Failure - Enable if the instance should be terminated when the pipeline fails. Defaults to
false
.
- instance
Profile stringName - Name of IAM Instance Profile.
- description string
- Description for the configuration.
- instance
Metadata InfrastructureOptions Configuration Instance Metadata Options - Configuration block with instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. Detailed below.
- instance
Types string[] - Set of EC2 Instance Types.
- key
Pair string - Name of EC2 Key Pair.
- logging
Infrastructure
Configuration Logging - Configuration block with logging settings. Detailed below.
- name string
Name for the configuration.
The following arguments are optional:
- {[key: string]: string}
- Key-value map of resource tags to assign to infrastructure created by the configuration.
- security
Group string[]Ids - Set of EC2 Security Group identifiers.
- sns
Topic stringArn - Amazon Resource Name (ARN) of SNS Topic.
- subnet
Id string - EC2 Subnet identifier. Also requires
security_group_ids
argument. - {[key: string]: string}
- Key-value map of resource tags to assign to the configuration. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - terminate
Instance booleanOn Failure - Enable if the instance should be terminated when the pipeline fails. Defaults to
false
.
- instance_
profile_ strname - Name of IAM Instance Profile.
- description str
- Description for the configuration.
- instance_
metadata_ Infrastructureoptions Configuration Instance Metadata Options Args - Configuration block with instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. Detailed below.
- instance_
types Sequence[str] - Set of EC2 Instance Types.
- key_
pair str - Name of EC2 Key Pair.
- logging
Infrastructure
Configuration Logging Args - Configuration block with logging settings. Detailed below.
- name str
Name for the configuration.
The following arguments are optional:
- Mapping[str, str]
- Key-value map of resource tags to assign to infrastructure created by the configuration.
- security_
group_ Sequence[str]ids - Set of EC2 Security Group identifiers.
- sns_
topic_ strarn - Amazon Resource Name (ARN) of SNS Topic.
- subnet_
id str - EC2 Subnet identifier. Also requires
security_group_ids
argument. - Mapping[str, str]
- Key-value map of resource tags to assign to the configuration. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - terminate_
instance_ boolon_ failure - Enable if the instance should be terminated when the pipeline fails. Defaults to
false
.
- instance
Profile StringName - Name of IAM Instance Profile.
- description String
- Description for the configuration.
- instance
Metadata Property MapOptions - Configuration block with instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. Detailed below.
- instance
Types List<String> - Set of EC2 Instance Types.
- key
Pair String - Name of EC2 Key Pair.
- logging Property Map
- Configuration block with logging settings. Detailed below.
- name String
Name for the configuration.
The following arguments are optional:
- Map<String>
- Key-value map of resource tags to assign to infrastructure created by the configuration.
- security
Group List<String>Ids - Set of EC2 Security Group identifiers.
- sns
Topic StringArn - Amazon Resource Name (ARN) of SNS Topic.
- subnet
Id String - EC2 Subnet identifier. Also requires
security_group_ids
argument. - Map<String>
- Key-value map of resource tags to assign to the configuration. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - terminate
Instance BooleanOn Failure - Enable if the instance should be terminated when the pipeline fails. Defaults to
false
.
Outputs
All input properties are implicitly available as output properties. Additionally, the InfrastructureConfiguration resource produces the following output properties:
- Arn string
- Amazon Resource Name (ARN) of the configuration.
- Date
Created string - Date when the configuration was created.
- Date
Updated string - Date when the configuration was updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- Amazon Resource Name (ARN) of the configuration.
- Date
Created string - Date when the configuration was created.
- Date
Updated string - Date when the configuration was updated.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name (ARN) of the configuration.
- date
Created String - Date when the configuration was created.
- date
Updated String - Date when the configuration was updated.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- Amazon Resource Name (ARN) of the configuration.
- date
Created string - Date when the configuration was created.
- date
Updated string - Date when the configuration was updated.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- Amazon Resource Name (ARN) of the configuration.
- date_
created str - Date when the configuration was created.
- date_
updated str - Date when the configuration was updated.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name (ARN) of the configuration.
- date
Created String - Date when the configuration was created.
- date
Updated String - Date when the configuration was updated.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing InfrastructureConfiguration Resource
Get an existing InfrastructureConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InfrastructureConfigurationState, opts?: CustomResourceOptions): InfrastructureConfiguration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
date_created: Optional[str] = None,
date_updated: Optional[str] = None,
description: Optional[str] = None,
instance_metadata_options: Optional[InfrastructureConfigurationInstanceMetadataOptionsArgs] = None,
instance_profile_name: Optional[str] = None,
instance_types: Optional[Sequence[str]] = None,
key_pair: Optional[str] = None,
logging: Optional[InfrastructureConfigurationLoggingArgs] = None,
name: Optional[str] = None,
resource_tags: Optional[Mapping[str, str]] = None,
security_group_ids: Optional[Sequence[str]] = None,
sns_topic_arn: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
terminate_instance_on_failure: Optional[bool] = None) -> InfrastructureConfiguration
func GetInfrastructureConfiguration(ctx *Context, name string, id IDInput, state *InfrastructureConfigurationState, opts ...ResourceOption) (*InfrastructureConfiguration, error)
public static InfrastructureConfiguration Get(string name, Input<string> id, InfrastructureConfigurationState? state, CustomResourceOptions? opts = null)
public static InfrastructureConfiguration get(String name, Output<String> id, InfrastructureConfigurationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- Amazon Resource Name (ARN) of the configuration.
- Date
Created string - Date when the configuration was created.
- Date
Updated string - Date when the configuration was updated.
- Description string
- Description for the configuration.
- Instance
Metadata InfrastructureOptions Configuration Instance Metadata Options - Configuration block with instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. Detailed below.
- Instance
Profile stringName - Name of IAM Instance Profile.
- Instance
Types List<string> - Set of EC2 Instance Types.
- Key
Pair string - Name of EC2 Key Pair.
- Logging
Infrastructure
Configuration Logging - Configuration block with logging settings. Detailed below.
- Name string
Name for the configuration.
The following arguments are optional:
- Dictionary<string, string>
- Key-value map of resource tags to assign to infrastructure created by the configuration.
- Security
Group List<string>Ids - Set of EC2 Security Group identifiers.
- Sns
Topic stringArn - Amazon Resource Name (ARN) of SNS Topic.
- Subnet
Id string - EC2 Subnet identifier. Also requires
security_group_ids
argument. - Dictionary<string, string>
- Key-value map of resource tags to assign to the configuration. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Terminate
Instance boolOn Failure - Enable if the instance should be terminated when the pipeline fails. Defaults to
false
.
- Arn string
- Amazon Resource Name (ARN) of the configuration.
- Date
Created string - Date when the configuration was created.
- Date
Updated string - Date when the configuration was updated.
- Description string
- Description for the configuration.
- Instance
Metadata InfrastructureOptions Configuration Instance Metadata Options Args - Configuration block with instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. Detailed below.
- Instance
Profile stringName - Name of IAM Instance Profile.
- Instance
Types []string - Set of EC2 Instance Types.
- Key
Pair string - Name of EC2 Key Pair.
- Logging
Infrastructure
Configuration Logging Args - Configuration block with logging settings. Detailed below.
- Name string
Name for the configuration.
The following arguments are optional:
- map[string]string
- Key-value map of resource tags to assign to infrastructure created by the configuration.
- Security
Group []stringIds - Set of EC2 Security Group identifiers.
- Sns
Topic stringArn - Amazon Resource Name (ARN) of SNS Topic.
- Subnet
Id string - EC2 Subnet identifier. Also requires
security_group_ids
argument. - map[string]string
- Key-value map of resource tags to assign to the configuration. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Terminate
Instance boolOn Failure - Enable if the instance should be terminated when the pipeline fails. Defaults to
false
.
- arn String
- Amazon Resource Name (ARN) of the configuration.
- date
Created String - Date when the configuration was created.
- date
Updated String - Date when the configuration was updated.
- description String
- Description for the configuration.
- instance
Metadata InfrastructureOptions Configuration Instance Metadata Options - Configuration block with instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. Detailed below.
- instance
Profile StringName - Name of IAM Instance Profile.
- instance
Types List<String> - Set of EC2 Instance Types.
- key
Pair String - Name of EC2 Key Pair.
- logging
Infrastructure
Configuration Logging - Configuration block with logging settings. Detailed below.
- name String
Name for the configuration.
The following arguments are optional:
- Map<String,String>
- Key-value map of resource tags to assign to infrastructure created by the configuration.
- security
Group List<String>Ids - Set of EC2 Security Group identifiers.
- sns
Topic StringArn - Amazon Resource Name (ARN) of SNS Topic.
- subnet
Id String - EC2 Subnet identifier. Also requires
security_group_ids
argument. - Map<String,String>
- Key-value map of resource tags to assign to the configuration. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - terminate
Instance BooleanOn Failure - Enable if the instance should be terminated when the pipeline fails. Defaults to
false
.
- arn string
- Amazon Resource Name (ARN) of the configuration.
- date
Created string - Date when the configuration was created.
- date
Updated string - Date when the configuration was updated.
- description string
- Description for the configuration.
- instance
Metadata InfrastructureOptions Configuration Instance Metadata Options - Configuration block with instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. Detailed below.
- instance
Profile stringName - Name of IAM Instance Profile.
- instance
Types string[] - Set of EC2 Instance Types.
- key
Pair string - Name of EC2 Key Pair.
- logging
Infrastructure
Configuration Logging - Configuration block with logging settings. Detailed below.
- name string
Name for the configuration.
The following arguments are optional:
- {[key: string]: string}
- Key-value map of resource tags to assign to infrastructure created by the configuration.
- security
Group string[]Ids - Set of EC2 Security Group identifiers.
- sns
Topic stringArn - Amazon Resource Name (ARN) of SNS Topic.
- subnet
Id string - EC2 Subnet identifier. Also requires
security_group_ids
argument. - {[key: string]: string}
- Key-value map of resource tags to assign to the configuration. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - terminate
Instance booleanOn Failure - Enable if the instance should be terminated when the pipeline fails. Defaults to
false
.
- arn str
- Amazon Resource Name (ARN) of the configuration.
- date_
created str - Date when the configuration was created.
- date_
updated str - Date when the configuration was updated.
- description str
- Description for the configuration.
- instance_
metadata_ Infrastructureoptions Configuration Instance Metadata Options Args - Configuration block with instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. Detailed below.
- instance_
profile_ strname - Name of IAM Instance Profile.
- instance_
types Sequence[str] - Set of EC2 Instance Types.
- key_
pair str - Name of EC2 Key Pair.
- logging
Infrastructure
Configuration Logging Args - Configuration block with logging settings. Detailed below.
- name str
Name for the configuration.
The following arguments are optional:
- Mapping[str, str]
- Key-value map of resource tags to assign to infrastructure created by the configuration.
- security_
group_ Sequence[str]ids - Set of EC2 Security Group identifiers.
- sns_
topic_ strarn - Amazon Resource Name (ARN) of SNS Topic.
- subnet_
id str - EC2 Subnet identifier. Also requires
security_group_ids
argument. - Mapping[str, str]
- Key-value map of resource tags to assign to the configuration. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - terminate_
instance_ boolon_ failure - Enable if the instance should be terminated when the pipeline fails. Defaults to
false
.
- arn String
- Amazon Resource Name (ARN) of the configuration.
- date
Created String - Date when the configuration was created.
- date
Updated String - Date when the configuration was updated.
- description String
- Description for the configuration.
- instance
Metadata Property MapOptions - Configuration block with instance metadata options for the HTTP requests that pipeline builds use to launch EC2 build and test instances. Detailed below.
- instance
Profile StringName - Name of IAM Instance Profile.
- instance
Types List<String> - Set of EC2 Instance Types.
- key
Pair String - Name of EC2 Key Pair.
- logging Property Map
- Configuration block with logging settings. Detailed below.
- name String
Name for the configuration.
The following arguments are optional:
- Map<String>
- Key-value map of resource tags to assign to infrastructure created by the configuration.
- security
Group List<String>Ids - Set of EC2 Security Group identifiers.
- sns
Topic StringArn - Amazon Resource Name (ARN) of SNS Topic.
- subnet
Id String - EC2 Subnet identifier. Also requires
security_group_ids
argument. - Map<String>
- Key-value map of resource tags to assign to the configuration. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - terminate
Instance BooleanOn Failure - Enable if the instance should be terminated when the pipeline fails. Defaults to
false
.
Supporting Types
InfrastructureConfigurationInstanceMetadataOptions, InfrastructureConfigurationInstanceMetadataOptionsArgs
- Http
Put intResponse Hop Limit - The number of hops that an instance can traverse to reach its destonation.
- Http
Tokens string - Whether a signed token is required for instance metadata retrieval requests. Valid values:
required
,optional
.
- Http
Put intResponse Hop Limit - The number of hops that an instance can traverse to reach its destonation.
- Http
Tokens string - Whether a signed token is required for instance metadata retrieval requests. Valid values:
required
,optional
.
- http
Put IntegerResponse Hop Limit - The number of hops that an instance can traverse to reach its destonation.
- http
Tokens String - Whether a signed token is required for instance metadata retrieval requests. Valid values:
required
,optional
.
- http
Put numberResponse Hop Limit - The number of hops that an instance can traverse to reach its destonation.
- http
Tokens string - Whether a signed token is required for instance metadata retrieval requests. Valid values:
required
,optional
.
- http_
put_ intresponse_ hop_ limit - The number of hops that an instance can traverse to reach its destonation.
- http_
tokens str - Whether a signed token is required for instance metadata retrieval requests. Valid values:
required
,optional
.
- http
Put NumberResponse Hop Limit - The number of hops that an instance can traverse to reach its destonation.
- http
Tokens String - Whether a signed token is required for instance metadata retrieval requests. Valid values:
required
,optional
.
InfrastructureConfigurationLogging, InfrastructureConfigurationLoggingArgs
- S3Logs
Infrastructure
Configuration Logging S3Logs - Configuration block with S3 logging settings. Detailed below.
- S3Logs
Infrastructure
Configuration Logging S3Logs - Configuration block with S3 logging settings. Detailed below.
- s3Logs
Infrastructure
Configuration Logging S3Logs - Configuration block with S3 logging settings. Detailed below.
- s3Logs
Infrastructure
Configuration Logging S3Logs - Configuration block with S3 logging settings. Detailed below.
- s3_
logs InfrastructureConfiguration Logging S3Logs - Configuration block with S3 logging settings. Detailed below.
- s3Logs Property Map
- Configuration block with S3 logging settings. Detailed below.
InfrastructureConfigurationLoggingS3Logs, InfrastructureConfigurationLoggingS3LogsArgs
- S3Bucket
Name string Name of the S3 Bucket.
The following arguments are optional:
- S3Key
Prefix string - Prefix to use for S3 logs. Defaults to
/
.
- S3Bucket
Name string Name of the S3 Bucket.
The following arguments are optional:
- S3Key
Prefix string - Prefix to use for S3 logs. Defaults to
/
.
- s3Bucket
Name String Name of the S3 Bucket.
The following arguments are optional:
- s3Key
Prefix String - Prefix to use for S3 logs. Defaults to
/
.
- s3Bucket
Name string Name of the S3 Bucket.
The following arguments are optional:
- s3Key
Prefix string - Prefix to use for S3 logs. Defaults to
/
.
- s3_
bucket_ strname Name of the S3 Bucket.
The following arguments are optional:
- s3_
key_ strprefix - Prefix to use for S3 logs. Defaults to
/
.
- s3Bucket
Name String Name of the S3 Bucket.
The following arguments are optional:
- s3Key
Prefix String - Prefix to use for S3 logs. Defaults to
/
.
Import
Using pulumi import
, import aws_imagebuilder_infrastructure_configuration
using the Amazon Resource Name (ARN). For example:
$ pulumi import aws:imagebuilder/infrastructureConfiguration:InfrastructureConfiguration example arn:aws:imagebuilder:us-east-1:123456789012:infrastructure-configuration/example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.