Skip to content

Update Infrastructure Configuration

imagebuilder_update_infrastructure_configuration R Documentation

Updates a new infrastructure configuration

Description

Updates a new infrastructure configuration. An infrastructure configuration defines the environment in which your image will be built and tested.

Usage

imagebuilder_update_infrastructure_configuration(
  infrastructureConfigurationArn, description, instanceTypes,
  instanceProfileName, securityGroupIds, subnetId, logging, keyPair,
  terminateInstanceOnFailure, snsTopicArn, clientToken, resourceTags,
  instanceMetadataOptions)

Arguments

infrastructureConfigurationArn

[required] The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update.

description

The description of the infrastructure configuration.

instanceTypes

The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.

instanceProfileName

[required] The instance profile to associate with the instance used to customize your Amazon EC2 AMI.

securityGroupIds

The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.

subnetId

The subnet ID to place the instance used to customize your Amazon EC2 AMI in.

logging

The logging configuration of the infrastructure configuration.

keyPair

The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image.

terminateInstanceOnFailure

The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.

snsTopicArn

The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.

EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.

clientToken

[required] Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.

resourceTags

The tags attached to the resource created by Image Builder.

instanceMetadataOptions

The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances. For more information about instance metadata options, see one of the following links:

Value

A list with the following syntax:

list(
  requestId = "string",
  clientToken = "string",
  infrastructureConfigurationArn = "string"
)

Request syntax

svc$update_infrastructure_configuration(
  infrastructureConfigurationArn = "string",
  description = "string",
  instanceTypes = list(
    "string"
  ),
  instanceProfileName = "string",
  securityGroupIds = list(
    "string"
  ),
  subnetId = "string",
  logging = list(
    s3Logs = list(
      s3BucketName = "string",
      s3KeyPrefix = "string"
    )
  ),
  keyPair = "string",
  terminateInstanceOnFailure = TRUE|FALSE,
  snsTopicArn = "string",
  clientToken = "string",
  resourceTags = list(
    "string"
  ),
  instanceMetadataOptions = list(
    httpTokens = "string",
    httpPutResponseHopLimit = 123
  )
)