Skip to content

Instantly share code, notes, and snippets.

Avatar

Timur Kutzhanov kutzhanov

  • Astana International Exchange
  • Astana
View GitHub Profile
View fargate-task-definition.json
{
"ipcMode": null,
"executionRoleArn": "arn:aws:iam::<aws-account-number>:role/ecsTaskExecutionRole",
"containerDefinitions": [
{
"dnsSearchDomains": [],
"logConfiguration": {
"logDriver": "awslogs",
"secretOptions": [],
"options": {
@kutzhanov
kutzhanov / .gitlab-ci.yml
Last active May 6, 2021
Deploy Docker container into AWS ECS Fargate using Gitlab CI
View .gitlab-ci.yml
image: docker:19.03
variables:
REPOSITORY_URL: <AWS_ACCOUNT_ID>.dkr.ecr.<REGION_NAME>.amazonaws.com/<ECR_REPOSITORY_NAME>
REGION: <REGION_NAME>
TASK_DEFINITION_NAME: <TASK_DEFINITION_NAME>
CLUSTER_NAME: <CLUSTER_NAME>
SERVICE_NAME: <SERVICE_NAME>
CPU: <CPU>
MEMORY: <MEMORY>