Skip to content

Bedrock Agentcore Control  >  Structures  >  Ec2Configuration

Ec2Configuration

Structure Class

Ec2Configuration dataclass

The configuration for Amazon EC2-based compute, including the launch template source, networking, storage volumes, and instance lifecycle settings.

Attributes

launch_template_source instance-attribute
launch_template_source: LaunchTemplateSource

The source of the launch template configuration that defines how instances are launched.

lifecycle_configuration class-attribute instance-attribute
lifecycle_configuration: InstanceLifecycleConfiguration | None = None

The lifecycle configuration for instances in the capacity provider.

root_volume class-attribute instance-attribute
root_volume: RootVolumeConfiguration | None = None

The configuration for the instance root volume. Specify the amount of free space to guarantee and, optionally, the Amazon EBS performance and encryption settings. The device name and delete-on-termination behavior are not configurable.

volumes class-attribute instance-attribute
volumes: list[VolumeConfiguration] | None = None

The named persistent Amazon EBS volumes for the capacity provider. A capacity provider can define up to five volumes.

vpc_configuration instance-attribute
vpc_configuration: VpcConfiguration

The VPC configuration for launching instances, including subnets and security groups.