This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 0.2 | |
phases: | |
pre_build: | |
commands: | |
- echo -n "$CODEBUILD_BUILD_ID" | sed "s/.*:\([[:xdigit:]]\{7\}\).*/\1/" > /tmp/build_id.out | |
- printf "%s:%s" "$REPOSITORY_URI" "$(cat /tmp/build_id.out)" > /tmp/build_tag.out | |
- echo "$(cat /tmp/build_tag.out)" | |
- printf '[{"name":"go-http-server","imageUri":"%s"}]' "$(cat /tmp/build_tag.out)" > imagedefinitions.json | |
- echo Logging in to Amazon ECR... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ACCOUNT_ID="xxxxxxxx" && \ | |
REGION="us-west-2" && \ | |
REPO="go-http-server" | |
# Login to ecr | |
$(aws ecr get-login --no-include-email --region ${REGION}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"family": "go-http-server", | |
"networkMode": "awsvpc", | |
"executionRoleArn": "arn:aws:iam::614658524125:role/ecsTaskExecutionRole", | |
"containerDefinitions": [ | |
{ | |
"name": "go-http-server", | |
"image": "614658524125.dkr.ecr.us-west-2.amazonaws.com/go-http-server:latest", | |
"portMappings": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: aws-auth | |
namespace: kube-system | |
data: | |
mapRoles: | | |
- rolearn: <ARN of instance role (not instance profile)> | |
username: system:node:{{EC2PrivateDNSName}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: aws-auth | |
namespace: kube-system | |
data: | |
mapRoles: | | |
- rolearn: <ARN of instance role (not instance profile)> | |
username: system:node:{{EC2PrivateDNSName}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: curly-edit | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: edit | |
subjects: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EKSInstanceLaunchTemplate: | |
Type: "AWS::EC2::LaunchTemplate" | |
Properties: | |
LaunchTemplateData: | |
TagSpecifications: | |
- ResourceType: instance | |
Tags: | |
- Key: !Sub "kubernetes.io/cluster/${CatsnDogsEKSCluster}" | |
Value: "owned" | |
- Key: "Name" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
├── Dockerfile | |
├── README.md | |
├── images | |
│ ├── 1.jpg | |
│ ├── 10.jpg | |
│ ├── 2.jpg | |
│ ├── 3.jpg | |
│ ├── 4.jpg | |
│ ├── 5.jpg |
NewerOlder