Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(batch): ComputeEnvironment implements IConnectable #21458

Merged
merged 10 commits into from
Aug 5, 2022
Prev Previous commit
Next Next commit
Restore fargate integration tests
  • Loading branch information
Tim Cutts committed Aug 4, 2022
commit de70e41e5877b7bdd5c5cf8e3614f1d339d8e910
Original file line number Diff line number Diff line change
Expand Up @@ -1976,6 +1976,146 @@
},
"Timeout": {}
}
},
"batchsecret7CD5E4C6": {
"Type": "AWS::SecretsManager::Secret",
"Properties": {
"GenerateSecretString": {}
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
},
"executionroleD9A39BE6": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Statement": [
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Principal": {
"Service": "batch.amazonaws.com"
}
}
],
"Version": "2012-10-17"
}
}
},
"executionroleDefaultPolicy497F11A3": {
"Type": "AWS::IAM::Policy",
"Properties": {
"PolicyDocument": {
"Statement": [
{
"Action": [
"secretsmanager:DescribeSecret",
"secretsmanager:GetSecretValue"
],
"Effect": "Allow",
"Resource": {
"Ref": "batchsecret7CD5E4C6"
}
}
],
"Version": "2012-10-17"
},
"PolicyName": "executionroleDefaultPolicy497F11A3",
"Roles": [
{
"Ref": "executionroleD9A39BE6"
}
]
}
},
"batchjobdeffargate7FE30059": {
"Type": "AWS::Batch::JobDefinition",
"Properties": {
"Type": "container",
"ContainerProperties": {
"Environment": [
{
"Name": "AWS_REGION",
"Value": {
"Ref": "AWS::Region"
}
},
{
"Name": "AWS_ACCOUNT",
"Value": {
"Ref": "AWS::AccountId"
}
}
],
"ExecutionRoleArn": {
"Fn::GetAtt": [
"executionroleD9A39BE6",
"Arn"
]
},
"FargatePlatformConfiguration": {
"PlatformVersion": "1.4.0"
},
"Image": "docker/whalesay",
"JobRoleArn": {
"Fn::GetAtt": [
"DefaultJobRole72A01394",
"Arn"
]
},
"MountPoints": [
{
"ContainerPath": "/mnt",
"ReadOnly": true,
"SourceVolume": "batchstackEFS25FF7B1E"
}
],
"Privileged": false,
"ReadonlyRootFilesystem": false,
"ResourceRequirements": [
{
"Type": "VCPU",
"Value": "0.25"
},
{
"Type": "MEMORY",
"Value": "512"
}
],
"Secrets": [
{
"Name": "SECRET",
"ValueFrom": {
"Ref": "batchsecret7CD5E4C6"
}
}
],
"Volumes": [
{
"EfsVolumeConfiguration": {
"AuthorizationConfig": {
"AccessPointId": {
"Ref": "EFSAccessPointA847C4A5"
},
"Iam": "ENABLED"
},
"FileSystemId": {
"Ref": "EFSF3301CFD"
},
"TransitEncryption": "ENABLED"
},
"Name": "batchstackEFS25FF7B1E"
}
]
},
"PlatformCapabilities": [
"FARGATE"
],
"RetryStrategy": {
"Attempts": 1
},
"Timeout": {}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,30 @@
"type": "aws:cdk:logicalId",
"data": "batchjobdeffromecrE0E30DAD"
}
],
"/batch-stack/batch-secret/Resource": [
{
"type": "aws:cdk:logicalId",
"data": "batchsecret7CD5E4C6"
}
],
"/batch-stack/execution-role/Resource": [
{
"type": "aws:cdk:logicalId",
"data": "executionroleD9A39BE6"
}
],
"/batch-stack/execution-role/DefaultPolicy/Resource": [
{
"type": "aws:cdk:logicalId",
"data": "executionroleDefaultPolicy497F11A3"
}
],
"/batch-stack/batch-job-def-fargate/Resource": [
{
"type": "aws:cdk:logicalId",
"data": "batchjobdeffargate7FE30059"
}
]
},
"displayName": "batch-stack"
Expand Down
Loading