Skip to content

Instantly share code, notes, and snippets.

system:
docker: true
queue: docker
environment:
'DOCKER_APP': 'solano-ecs-repo'
'DEPLOY_AWS_ECS': 'true'
'AWS_ECS_CLUSTER': 'solano-ecs-cluster'
'AWS_ECS_SERVICE': 'solano-ecs-service'
'AWS_ECS_TASK_DEFINITION': 'solano-family'
{
"Version" : "2008-10-17",
"Statement" : [ {
"Sid" : "allow-solano-role",
"Effect" : "Allow",
"Principal" : {
"AWS" : "arn:aws:iam::<ACCOUNT ID>:role/solano-ci-role"
},
"Action" : [ "ecr:GetDownloadUrlForLayer", "ecr:BatchGetImage", "ecr:BatchCheckLayerAvailability", "ecr:PutImage", "ecr:InitiateLayerUpload", "ecr:UploadLayerPart", "ecr:CompleteLayerUpload" ]
} ]
{
"containerDefinitions": [
{
"name": "solano-task-definition",
"image": "<ACCOUNT ID>.dkr.ecr.<REGION>.amazonaws.com/solano:init",
"essential": true,
"portMappings": [
{
"containerPort": 80,
"hostPort": 80
$cfCreateDistData = [
'DistributionConfig' => [ // REQUIRED
'Aliases' => [
'Items' => ['dev-null.link', 'www.dev-null.link' ],
'Quantity' => 2, // REQUIRED
],
'CacheBehaviors' => [
'Items' => [
[
'AllowedMethods' => [