AWS Fundamentals Logo
AWS Fundamentals
AWS::Batch::ComputeEnvironment

Batch ComputeEnvironment

Resource Type definition for AWS::Batch::ComputeEnvironment

Properties

11 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
Type
string
RequiredCreate-only
ComputeEnvironmentName
string
Create-only
ComputeResources
ComputeResources
Context
string
EksConfiguration
EksConfiguration
Create-only
ReplaceComputeEnvironment
boolean
Write-only
ServiceRole
string
State
string
Tags
object
Create-only
UnmanagedvCpus
integer
UpdatePolicy
UpdatePolicy
Write-only

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ComputeEnvironmentArnstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Batch::ComputeEnvironment

Resources:
  MyResource:
    Type: AWS::Batch::ComputeEnvironment
    Properties:
      Type: "value"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

Batch:CreateComputeEnvironmentBatch:TagResourceBatch:DescribeComputeEnvironmentsiam:CreateServiceLinkedRoleIam:PassRoleEks:DescribeClusterec2:DescribeLaunchTemplateVersions

read

Batch:DescribeComputeEnvironments

update

Batch:UpdateComputeEnvironmentBatch:DescribeComputeEnvironmentsBatch:TagResourceBatch:UnTagResourceIam:PassRoleEks:DescribeClusterec2:DescribeLaunchTemplateVersions

delete

Batch:DeleteComputeEnvironmentBatch:DescribeComputeEnvironmentsBatch:UpdateComputeEnvironmentIam:PassRoleEks:DescribeClusterec2:DescribeLaunchTemplateVersions

list

Batch:DescribeComputeEnvironments

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceBatch
Properties12
Required1
TaggingSupported
Primary IDComputeEnvironmentArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

ComputeResources/SpotIamFleetRoleComputeEnvironmentNameTagsTypeEksConfiguration

External Links