ComputeEnvironment is the Schema for the ComputeEnvironments API
Type
CRD
Group
batch.aws.crossplane.io
Version
v1alpha1
apiVersion: batch.aws.crossplane.io/v1alpha1
kind: ComputeEnvironment
ComputeEnvironmentSpec defines the desired state of ComputeEnvironment
ComputeEnvironmentParameters defines the desired state of ComputeEnvironment
Details about the compute resources managed by the compute environment. This parameter is required for managed compute environments. For more information, see Compute Environments (https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) in the Batch User Guide.
No description provided.
No description provided.
An object representing a launch template associated with a compute resource. You must specify either the launch template ID or launch template name in the request, but not both. If security groups are specified using both the securityGroupIds parameter of CreateComputeEnvironment and the launch template, the values in the securityGroupIds parameter of CreateComputeEnvironment will be used. This object isn't applicable to jobs that are running on Fargate resources.
InstanceRoleRef is a reference to the IAM InstanceProfile used to set the InstanceRole.
Policies for referencing.
InstanceRoleSelector selects references to the IAM InstanceProfile used to set the InstanceRole.
Policies for selection.
SecurityGroupIDRefs is a list of references to SecurityGroups used to set the SecurityGroupIDs.
Policies for referencing.
SecurityGroupIDsSelector selects references to SecurityGroupID used to set the SecurityGroupIDs.
Policies for selection.
The Amazon EC2 security groups associated with instances launched in the compute environment. One or more security groups must be specified, either in securityGroupIds or using a launch template referenced in launchTemplate. This parameter is required for jobs that are running on Fargate resources and must contain at least one security group. Fargate doesn't support launch templates. If security groups are specified using both securityGroupIds and launchTemplate, the values in securityGroupIds are used. For a MANGED CE of type EC2 or SPOT to be able to update this field Allocation Strategy BEST_FIT_PROGRESSIVE or SPOT_CAPACITY_OPTIMIZED is required.
ServiceRoleARNRef is a reference to an ARN of the IAM role used to set the ServiceRoleARN.
Policies for referencing.
ServiceRoleARNSelector selects references to an ARN of the IAM role used to set the ServiceRoleARN.
Policies for selection.
SpotIAMFleetRoleRef is a reference to an ARN of the IAM role used to set the SpotIAMFleetRole.
Policies for referencing.
SpotIAMFleetRoleSelector selects references to an ARN of the IAM role used to set the SpotIAMFleetRole.
Policies for selection.
SubnetIDRefs is a list of references to SubnetIDs used to set the SubnetIDs.
Policies for referencing.
SubnetIDSelector selects references to SubnetIDs used to set the SubnetIDs.
Policies for selection.
The VPC subnets where the compute resources are launched. These subnets must be within the same VPC. Fargate compute resources can contain up to 16 subnets. For more information, see VPCs and Subnets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html) in the Amazon VPC User Guide. (Subnets is originally a field of ComputeResources) Subnets is a required field for CE type MANAGED. For a MANGED CE of type EC2 or SPOT to be able to update this field Allocation Strategy BEST_FIT_PROGRESSIVE or SPOT_CAPACITY_OPTIMIZED is required.
Specifies the infrastructure update policy for the compute environment. For more information about infrastructure updates, see Updating compute environments (https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html) in the Batch User Guide. Only applicable to MANGED CE of type EC2 or SPOT. This field requires an update request to be set and it can be updated for CE only with Allocation Strategy BEST_FIT_PROGRESSIVE or SPOT_CAPACITY_OPTIMIZED. JobExecutionTimeoutMinutes specifies the job timeout (in minutes) when the compute environment infrastructure is updated. The default value is 30. TerminateJobsOnUpdate specifies whether jobs are automatically terminated when the computer environment infrastructure is updated. The default value is false.
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
Policies for referencing.
ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef
Policies for referencing.
PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource.
WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other.
ComputeEnvironmentStatus defines the observed state of ComputeEnvironment.
ComputeEnvironmentObservation defines the observed state of ComputeEnvironment
Conditions of the resource.
example-managed-ec2-computeenvironment
apiVersion: batch.aws.crossplane.io/v1alpha1
kind: ComputeEnvironment
metadata:
name: example-managed-ec2-computeenvironment
spec:
forProvider:
computeResources:
allocationStrategy: BEST_FIT_PROGRESSIVE
instanceTypes:
- optimal
maxvCPUs: 32
minvCPUs: 1
tags:
cr: cr-for-ec2-ce
other: updatable-tag
type_: EC2
instanceRoleRef:
name: ecsinstance-role-profile
region: us-east-1
securityGroupIdRefs:
- name: batch-ce-sg
subnetIdRefs:
- name: sample-subnet1
tags:
ce: my-ec2-ce
other: blaa
type_: MANAGED
providerConfigRef:
name: example
example-unmanaged-computeenvironment
apiVersion: batch.aws.crossplane.io/v1alpha1
kind: ComputeEnvironment
metadata:
name: example-unmanaged-computeenvironment
spec:
forProvider:
region: us-east-1
serviceRoleARNRef:
name: batch-role
tags:
ce: my-unmanaged-ce
type_: UNMANAGED
providerConfigRef:
name: example
example-managed-fargate-computeenvironment
apiVersion: batch.aws.crossplane.io/v1alpha1
kind: ComputeEnvironment
metadata:
name: example-managed-fargate-computeenvironment
spec:
forProvider:
computeResources:
maxvCPUs: 128
type_: FARGATE
desiredState: ENABLED
region: us-east-1
securityGroupIdRefs:
- name: batch-ce-sg
subnetIdRefs:
- name: sample-subnet1
tags:
ce: my-fargate-ce
other: bla
type_: MANAGED
providerConfigRef:
name: example
example-managed-ec2spot-computeenvironment
apiVersion: batch.aws.crossplane.io/v1alpha1
kind: ComputeEnvironment
metadata:
name: example-managed-ec2spot-computeenvironment
spec:
forProvider:
computeResources:
allocationStrategy: SPOT_CAPACITY_OPTIMIZED
instanceTypes:
- optimal
maxvCPUs: 24
minvCPUs: 1
type_: SPOT
instanceRoleRef:
name: ecsinstance-role-profile
region: us-east-1
securityGroupIdRefs:
- name: batch-ce-sg
spotIAMFleetRoleRef:
name: spot-fleet-tagging-role
subnetIdRefs:
- name: sample-subnet1
tags:
ce: my-spotec2-ce
type_: MANAGED
providerConfigRef:
name: example