issues
search
cloudnativedaysjp
/
dreamkast-infra
MIT License
13
stars
4
forks
source link
Automated PR (gitops/development/dk-main)
#4010
Closed
gitops-for-cloudnativedays[bot]
closed
6 days ago
gitops-for-cloudnativedays[bot]
commented
6 days ago
this PR is automatically created & merged
github-actions[bot]
commented
6 days ago
:white_check_mark: Preview for stg
```diff ```
github-actions[bot]
commented
6 days ago
:white_check_mark: Preview for prod
```diff --- arn:aws:ecs:ap-northeast-1:607167088920:service/dreamkast-prod/seaman +++ prod/seaman/service-def.jsonnet @@ -11,7 +11,6 @@ "enableECSManagedTags": true, "enableExecuteCommand": true, "forceNewDeployment": false, - "healthCheckGracePeriodSeconds": 0, "networkConfiguration": { "awsvpcConfiguration": { "assignPublicIp": "ENABLED", --- arn:aws:ecs:ap-northeast-1:607167088920:task-definition/dreamkast-prod-seaman:138 +++ prod/seaman/task-def.jsonnet @@ -90,7 +90,6 @@ "taskRoleArn": "arn:aws:iam::607167088920:role/dreamkast-prod-ecs-seaman", "volumes": [ { - "host": {}, "name": "config" } ] ```
github-actions[bot]
commented
6 days ago
:white_check_mark: Preview for reviewapps
```diff --- +++ reviewapps/dk-2450/dreamkast/service-def.jsonnet @@ -1 +1,37 @@ +{ + "deploymentConfiguration": { + "deploymentCircuitBreaker": { + "enable": false, + "rollback": false + }, + "maximumPercent": 200, + "minimumHealthyPercent": 100 + }, + "desiredCount": 1, + "enableECSManagedTags": true, + "enableExecuteCommand": true, + "forceNewDeployment": false, + "healthCheckGracePeriodSeconds": 0, + "loadBalancers": [ + { + "containerName": "dreamkast", + "containerPort": 3000, + "targetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:607167088920:targetgroup/dev-dk-2450/f3aee4c409bd23cd" + } + ], + "networkConfiguration": { + "awsvpcConfiguration": { + "assignPublicIp": "ENABLED", + "securityGroups": [ + "sg-00e734fea020b954d" + ], + "subnets": [ + "subnet-00709135a42bf907e", + "subnet-033491d41490494b6", + "subnet-0d07831c8fc073511" + ] + } + }, + "platformVersion": "LATEST", + "propagateTags": "NONE" +} --- +++ reviewapps/dk-2450/dreamkast/task-def.jsonnet @@ -1 +1,213 @@ +{ + "containerDefinitions": [ + { + "cpu": 512, + "dependsOn": [ + { + "condition": "SUCCESS", + "containerName": "initdb" + } + ], + "environment": [ + { + "name": "AWS_REGION", + "value": "us-west-2" + }, + { + "name": "DREAMKAST_API_ADDR", + "value": "https://api.dev.cloudnativedays.jp" + }, + { + "name": "DREAMKAST_NAMESPACE", + "value": "dreamkast-dev-dk-2450-dk" + }, + { + "name": "DREAMKAST_UI_BASE_URL", + "value": "*" + }, + { + "name": "DREAMKAST_WEAVER_ADDR", + "value": "https://dkw.dev.cloudnativedays.jp" + }, + { + "name": "MYSQL_DATABASE", + "value": "dreamkast" + }, + { + "name": "MYSQL_HOST", + "value": "mysql-dk-2450.development.local" + }, + { + "name": "OTEL_SERVICE_NAME", + "value": "dreamkast" + }, + { + "name": "RAILS_ENV", + "value": "production" + }, + { + "name": "REDIS_URL", + "value": "redis://redis-dk-2450.development.local" + }, + { + "name": "REVIEW_APP", + "value": "true" + }, + { + "name": "S3_BUCKET", + "value": "dreamkast-dev-bucket" + }, + { + "name": "S3_REGION", + "value": "us-west-2" + }, + { + "name": "SENTRY_DSN", + "value": "TODO" + }, + { + "name": "SQS_FIFO_QUEUE_URL", + "value": "https://sqs.us-west-2.amazonaws.com/607167088920/dreamkast-stg-fifo-queue.fifo" + } + ], + "essential": true, + "image": "607167088920.dkr.ecr.us-west-2.amazonaws.com/dreamkast-ecs:2b5ab0638954962a18a8e4d7781b265523f1bb57", + "logConfiguration": { + "logDriver": "awslogs", + "options": { + "awslogs-create-group": "true", + "awslogs-group": "dreamkast-dev-dk-2450-dk", + "awslogs-region": "us-west-2", + "awslogs-stream-prefix": "dreamkast" + } + }, + "memory": 1024, + "memoryReservation": 1024, + "name": "dreamkast", + "portMappings": [ + { + "appProtocol": "", + "containerPort": 3000, + "hostPort": 3000, + "protocol": "tcp" + } + ], + "secrets": [ + { + "name": "AUTH0_CLIENT_ID", + "valueFrom": "arn:aws:secretsmanager:us-west-2:607167088920:secret:dreamkast/reviewapp-env-yGJKrj:AUTH0_CLIENT_ID::" + }, + { + "name": "AUTH0_CLIENT_SECRET", + "valueFrom": "arn:aws:secretsmanager:us-west-2:607167088920:secret:dreamkast/reviewapp-env-yGJKrj:AUTH0_CLIENT_SECRET::" + }, + { + "name": "AUTH0_DOMAIN", + "valueFrom": "arn:aws:secretsmanager:us-west-2:607167088920:secret:dreamkast/reviewapp-env-yGJKrj:AUTH0_DOMAIN::" + }, + { + "name": "PRINTNODE_API_KEY", + "valueFrom": "arn:aws:secretsmanager:us-west-2:607167088920:secret:dreamkast/reviewapp-env-yGJKrj:PRINTNODE_API_KEY::" + }, + { + "name": "RAILS_MASTER_KEY", + "valueFrom": "arn:aws:secretsmanager:us-west-2:607167088920:secret:dreamkast/rails-app-secret-SqidNC" + } + ] + }, + { + "command": [ + "bundle exec rails db:migrate; bundle exec rails db:seed;" + ], + "cpu": 0, + "entryPoint": [ + "/bin/bash", + "-c" + ], + "environment": [ + { + "name": "DREAMKAST_NAMESPACE", + "value": "dreamkast-dev-dk-2450-dk" + }, + { + "name": "MYSQL_DATABASE", + "value": "dreamkast" + }, + { + "name": "MYSQL_HOST", + "value": "mysql-dk-2450.development.local" + }, + { + "name": "RAILS_ENV", + "value": "production" + }, + { + "name": "REDIS_URL", + "value": "redis://redis-dk-2450.development.local" + }, + { + "name": "REVIEW_APP", + "value": "true" + }, + { + "name": "S3_BUCKET", + "value": "dreamkast-dev-bucket" + }, + { + "name": "S3_REGION", + "value": "us-west-2" + }, + { + "name": "SENTRY_DSN", + "value": "TODO" + } + ], + "essential": false, + "image": "607167088920.dkr.ecr.us-west-2.amazonaws.com/dreamkast-ecs:2b5ab0638954962a18a8e4d7781b265523f1bb57", + "logConfiguration": { + "logDriver": "awslogs", + "options": { + "awslogs-create-group": "true", + "awslogs-group": "dreamkast-dev-dk-2450-dk", + "awslogs-region": "us-west-2", + "awslogs-stream-prefix": "dreamkast" + } + }, + "memory": 1024, + "name": "initdb", + "secrets": [ + { + "name": "AUTH0_CLIENT_ID", + "valueFrom": "arn:aws:secretsmanager:us-west-2:607167088920:secret:dreamkast/reviewapp-env-yGJKrj:AUTH0_CLIENT_ID::" + }, + { + "name": "AUTH0_CLIENT_SECRET", + "valueFrom": "arn:aws:secretsmanager:us-west-2:607167088920:secret:dreamkast/reviewapp-env-yGJKrj:AUTH0_CLIENT_SECRET::" + }, + { + "name": "AUTH0_DOMAIN", + "valueFrom": "arn:aws:secretsmanager:us-west-2:607167088920:secret:dreamkast/reviewapp-env-yGJKrj:AUTH0_DOMAIN::" + }, + { + "name": "PRINTNODE_API_KEY", + "valueFrom": "arn:aws:secretsmanager:us-west-2:607167088920:secret:dreamkast/reviewapp-env-yGJKrj:PRINTNODE_API_KEY::" + }, + { + "name": "RAILS_MASTER_KEY", + "valueFrom": "arn:aws:secretsmanager:us-west-2:607167088920:secret:dreamkast/rails-app-secret-SqidNC" + } + ] + } + ], + "cpu": "512", + "executionRoleArn": "arn:aws:iam::607167088920:role/dreamkast-dev-ecs-task-execution-role", + "family": "dreamkast-dev-dk-2450-dk", + "ipcMode": "", + "memory": "1024", + "networkMode": "awsvpc", + "pidMode": "", + "requiresCompatibilities": [ + "FARGATE" + ], + "taskRoleArn": "arn:aws:iam::607167088920:role/dreamkast-dev-ecs-dreamkast" +} --- +++ reviewapps/dk-2450/mysql/service-def.jsonnet @@ -1 +1,35 @@ +{ + "deploymentConfiguration": { + "deploymentCircuitBreaker": { + "enable": false, + "rollback": false + }, + "maximumPercent": 200, + "minimumHealthyPercent": 100 + }, + "desiredCount": 1, + "enableECSManagedTags": true, + "enableExecuteCommand": true, + "forceNewDeployment": false, + "healthCheckGracePeriodSeconds": 0, + "networkConfiguration": { + "awsvpcConfiguration": { + "assignPublicIp": "ENABLED", + "securityGroups": [ + "sg-0e0029eb49f4d0455" + ], + "subnets": [ + "subnet-00709135a42bf907e", + "subnet-033491d41490494b6", + "subnet-0d07831c8fc073511" + ] + } + }, + "platformVersion": "LATEST", + "propagateTags": "NONE", + "serviceRegistries": [ + { + "registryArn": "arn:aws:servicediscovery:us-west-2:607167088920:service/srv-mrugnf3fzlt36l55" + } + ] +} --- +++ reviewapps/dk-2450/mysql/task-def.jsonnet @@ -1 +1,49 @@ +{ + "containerDefinitions": [ + { + "cpu": 256, + "environment": [ + { + "name": "MYSQL_DATABASE", + "value": "dreamkast" + }, + { + "name": "MYSQL_PASSWORD", + "value": "password" + }, + { + "name": "MYSQL_ROOT_PASSWORD", + "value": "password" + }, + { + "name": "MYSQL_USER", + "value": "user" + } + ], + "essential": true, + "image": "607167088920.dkr.ecr.us-west-2.amazonaws.com/ecr-public/docker/library/mysql:8.0.33", + "memory": 512, + "memoryReservation": 512, + "name": "mysql", + "portMappings": [ + { + "appProtocol": "", + "containerPort": 3306, + "hostPort": 3306, + "protocol": "tcp" + } + ] + } + ], + "cpu": "256", + "executionRoleArn": "arn:aws:iam::607167088920:role/dreamkast-dev-ecs-task-execution-role", + "family": "dreamkast-dev-dk-2450-mysql", + "ipcMode": "", + "memory": "512", + "networkMode": "awsvpc", + "pidMode": "", + "requiresCompatibilities": [ + "FARGATE" + ], + "taskRoleArn": "arn:aws:iam::607167088920:role/dreamkast-dev-ecs-mysql" +} --- +++ reviewapps/dk-2450/dreamkast-fifo-worker/service-def.jsonnet @@ -1 +1,30 @@ +{ + "deploymentConfiguration": { + "deploymentCircuitBreaker": { + "enable": false, + "rollback": false + }, + "maximumPercent": 200, + "minimumHealthyPercent": 100 + }, + "desiredCount": 1, + "enableECSManagedTags": true, + "enableExecuteCommand": true, + "forceNewDeployment": false, + "healthCheckGracePeriodSeconds": 0, + "networkConfiguration": { + "awsvpcConfiguration": { + "assignPublicIp": "ENABLED", + "securityGroups": [ + "sg-0140d2aeaaa5d6d07" + ], + "subnets": [ + "subnet-00709135a42bf907e", + "subnet-033491d41490494b6", + "subnet-0d07831c8fc073511" + ] + } + }, + "platformVersion": "LATEST", + "propagateTags": "NONE" +} --- +++ reviewapps/dk-2450/dreamkast-fifo-worker/task-def.jsonnet @@ -1 +1,104 @@ +{ + "containerDefinitions": [ + { + "command": [ + "exec", + "rake", + "aws_sqs:fifo_job" + ], + "cpu": 256, + "entryPoint": [ + "bundle" + ], + "environment": [ + { + "name": "AWS_REGION", + "value": "us-west-2" + }, + { + "name": "DREAMKAST_NAMESPACE", + "value": "dreamkast-dev-dk-2450-fifo-worker" + }, + { + "name": "MYSQL_DATABASE", + "value": "dreamkast" + }, + { + "name": "MYSQL_HOST", + "value": "mysql-dk-2450.development.local" + }, + { + "name": "OTEL_SERVICE_NAME", + "value": "dreamkast-fifo-worker" + }, + { + "name": "RAILS_ENV", + "value": "production" + }, + { + "name": "REDIS_URL", + "value": "redis://redis-dk-2450.development.local" + }, + { + "name": "S3_BUCKET", + "value": "dreamkast-dev-bucket" + }, + { + "name": "S3_REGION", + "value": "us-west-2" + }, + { + "name": "SENTRY_DSN", + "value": "TODO" + }, + { + "name": "SQS_FIFO_QUEUE_URL", + "value": "https://sqs.us-west-2.amazonaws.com/607167088920/dreamkast-stg-fifo-queue.fifo" + } + ], + "essential": true, + "image": "607167088920.dkr.ecr.us-west-2.amazonaws.com/dreamkast-ecs:2b5ab0638954962a18a8e4d7781b265523f1bb57", + "logConfiguration": { + "logDriver": "awslogs", + "options": { + "awslogs-create-group": "true", + "awslogs-group": "dreamkast-dev-dk-2450-fifo-worker", + "awslogs-region": "us-west-2", + "awslogs-stream-prefix": "dreamkast-fifo-worker" + } + }, + "memory": 512, + "memoryReservation": 512, + "name": "dreamkast-fifo-worker", + "secrets": [ + { + "name": "AUTH0_CLIENT_ID", + "valueFrom": "arn:aws:secretsmanager:us-west-2:607167088920:secret:dreamkast/reviewapp-env-yGJKrj:AUTH0_CLIENT_ID::" + }, + { + "name": "AUTH0_CLIENT_SECRET", + "valueFrom": "arn:aws:secretsmanager:us-west-2:607167088920:secret:dreamkast/reviewapp-env-yGJKrj:AUTH0_CLIENT_SECRET::" + }, + { + "name": "AUTH0_DOMAIN", + "valueFrom": "arn:aws:secretsmanager:us-west-2:607167088920:secret:dreamkast/reviewapp-env-yGJKrj:AUTH0_DOMAIN::" + }, + { + "name": "RAILS_MASTER_KEY", + "valueFrom": "arn:aws:secretsmanager:us-west-2:607167088920:secret:dreamkast/rails-app-secret-SqidNC" + } + ] + } + ], + "cpu": "256", + "executionRoleArn": "arn:aws:iam::607167088920:role/dreamkast-dev-ecs-task-execution-role", + "family": "dreamkast-dev-dk-2450-fifo-worker", + "ipcMode": "", + "memory": "512", + "networkMode": "awsvpc", + "pidMode": "", + "requiresCompatibilities": [ + "FARGATE" + ], + "taskRoleArn": "arn:aws:iam::607167088920:role/dreamkast-dev-ecs-dreamkast-fifo-worker" +} --- +++ reviewapps/dk-2450/redis/service-def.jsonnet @@ -1 +1,35 @@ +{ + "deploymentConfiguration": { + "deploymentCircuitBreaker": { + "enable": false, + "rollback": false + }, + "maximumPercent": 200, + "minimumHealthyPercent": 100 + }, + "desiredCount": 1, + "enableECSManagedTags": true, + "enableExecuteCommand": true, + "forceNewDeployment": false, + "healthCheckGracePeriodSeconds": 0, + "networkConfiguration": { + "awsvpcConfiguration": { + "assignPublicIp": "ENABLED", + "securityGroups": [ + "sg-0ab649652e2dd6c9c" + ], + "subnets": [ + "subnet-00709135a42bf907e", + "subnet-033491d41490494b6", + "subnet-0d07831c8fc073511" + ] + } + }, + "platformVersion": "LATEST", + "propagateTags": "NONE", + "serviceRegistries": [ + { + "registryArn": "arn:aws:servicediscovery:us-west-2:607167088920:service/srv-vlrydf7zrxvls2fj" + } + ] +} --- +++ reviewapps/dk-2450/redis/task-def.jsonnet @@ -1 +1,31 @@ +{ + "containerDefinitions": [ + { + "cpu": 256, + "essential": true, + "image": "607167088920.dkr.ecr.us-west-2.amazonaws.com/ecr-public/docker/library/redis:6.0", + "memory": 512, + "memoryReservation": 512, + "name": "redis", + "portMappings": [ + { + "appProtocol": "", + "containerPort": 6379, + "hostPort": 6379, + "protocol": "tcp" + } + ] + } + ], + "cpu": "256", + "executionRoleArn": "arn:aws:iam::607167088920:role/dreamkast-dev-ecs-task-execution-role", + "family": "dreamkast-dev-dk-2450-redis", + "ipcMode": "", + "memory": "512", + "networkMode": "awsvpc", + "pidMode": "", + "requiresCompatibilities": [ + "FARGATE" + ], + "taskRoleArn": "arn:aws:iam::607167088920:role/dreamkast-dev-ecs-redis" +} --- +++ reviewapps/dk-2435/dreamkast/service-def.jsonnet @@ -1 +1,37 @@ +{ + "deploymentConfiguration": { + "deploymentCircuitBreaker": { + "enable": false, + "rollback": false + }, + "maximumPercent": 200, + "minimumHealthyPercent": 100 + }, + "desiredCount": 1, + "enableECSManagedTags": true, + "enableExecuteCommand": true, + "forceNewDeployment": false, + "healthCheckGracePeriodSeconds": 0, + "loadBalancers": [ + { + "containerName": "dreamkast", + "containerPort": 3000, + "targetGroupArn": "arn:aws:elasticloadbalancing:us-west-2:607167088920:targetgroup/dev-dk-2435/95c337a415b1e2d3" + } + ], + "networkConfiguration": { + "awsvpcConfiguration": { + "assignPublicIp": "ENABLED", + "securityGroups": [ + "sg-00e734fea020b954d" + ], + "subnets": [ + "subnet-00709135a42bf907e", + "subnet-033491d41490494b6", + "subnet-0d07831c8fc073511" + ] + } + }, + "platformVersion": "LATEST", + "propagateTags": "NONE" +} --- +++ reviewapps/dk-2435/mysql/service-def.jsonnet @@ -1 +1,35 @@ +{ + "deploymentConfiguration": { + "deploymentCircuitBreaker": { + "enable": false, + "rollback": false + }, + "maximumPercent": 200, + "minimumHealthyPercent": 100 + }, + "desiredCount": 1, + "enableECSManagedTags": true, + "enableExecuteCommand": true, + "forceNewDeployment": false, + "healthCheckGracePeriodSeconds": 0, + "networkConfiguration": { + "awsvpcConfiguration": { + "assignPublicIp": "ENABLED", + "securityGroups": [ + "sg-0e0029eb49f4d0455" + ], + "subnets": [ + "subnet-00709135a42bf907e", + "subnet-033491d41490494b6", + "subnet-0d07831c8fc073511" + ] + } + }, + "platformVersion": "LATEST", + "propagateTags": "NONE", + "serviceRegistries": [ + { + "registryArn": "arn:aws:servicediscovery:us-west-2:607167088920:service/srv-45pwi75cd2cg2ppk" + } + ] +} --- +++ reviewapps/dk-2435/dreamkast-fifo-worker/service-def.jsonnet @@ -1 +1,30 @@ +{ + "deploymentConfiguration": { + "deploymentCircuitBreaker": { + "enable": false, + "rollback": false + }, + "maximumPercent": 200, + "minimumHealthyPercent": 100 + }, + "desiredCount": 1, + "enableECSManagedTags": true, + "enableExecuteCommand": true, + "forceNewDeployment": false, + "healthCheckGracePeriodSeconds": 0, + "networkConfiguration": { + "awsvpcConfiguration": { + "assignPublicIp": "ENABLED", + "securityGroups": [ + "sg-0140d2aeaaa5d6d07" + ], + "subnets": [ + "subnet-00709135a42bf907e", + "subnet-033491d41490494b6", + "subnet-0d07831c8fc073511" + ] + } + }, + "platformVersion": "LATEST", + "propagateTags": "NONE" +} --- +++ reviewapps/dk-2435/redis/service-def.jsonnet @@ -1 +1,35 @@ +{ + "deploymentConfiguration": { + "deploymentCircuitBreaker": { + "enable": false, + "rollback": false + }, + "maximumPercent": 200, + "minimumHealthyPercent": 100 + }, + "desiredCount": 1, + "enableECSManagedTags": true, + "enableExecuteCommand": true, + "forceNewDeployment": false, + "healthCheckGracePeriodSeconds": 0, + "networkConfiguration": { + "awsvpcConfiguration": { + "assignPublicIp": "ENABLED", + "securityGroups": [ + "sg-0ab649652e2dd6c9c" + ], + "subnets": [ + "subnet-00709135a42bf907e", + "subnet-033491d41490494b6", + "subnet-0d07831c8fc073511" + ] + } + }, + "platformVersion": "LATEST", + "propagateTags": "NONE", + "serviceRegistries": [ + { + "registryArn": "arn:aws:servicediscovery:us-west-2:607167088920:service/srv-x4xe5i3tpj5kqlto" + } + ] +} ```
this PR is automatically created & merged