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 that represents a launch template that's 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.
The details for the Amazon EKS cluster that supports the compute environment.
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.
THIS IS A BETA FIELD. It is on by default but can be opted out through a Crossplane feature flag. ManagementPolicies specify the array of actions Crossplane is allowed to take on the managed and external resources. This field is planned to replace the DeletionPolicy field in a future release. Currently, both could be set independently and non-default values would be honored if the feature flag is enabled. If both are custom, the DeletionPolicy field will be ignored. See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
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