Skip to content

Commit

Permalink
change task defintion for ecs test
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandra Reddy authored and Chandra Reddy committed Mar 28, 2024
1 parent 2ab1b48 commit 0641f5b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .aws/task-definition.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"taskDefinitionArn": "arn:aws:ecs:us-east-1:576133371502:task-definition/announcements-task:4",
"taskDefinitionArn": "arn:aws:ecs:us-east-1:576133371502:task-definition/announcements-task:7",
"containerDefinitions": [
{
"name": "announcements-web",
"image": "public.ecr.aws/j2a5t6s3/announcements-web:a496df17bc23b311c9e0fbcf4c1615d75d8478b3",
"image": "public.ecr.aws/j2a5t6s3/announcements-web:2ab1b487e9be0e42651f112179068badd9fb945a",
"cpu": 0,
"portMappings": [
{
Expand Down Expand Up @@ -71,7 +71,7 @@
},
{
"name": "announcements-db",
"image": "public.ecr.aws/j2a5t6s3/announcements-db:a496df17bc23b311c9e0fbcf4c1615d75d8478b3",
"image": "public.ecr.aws/j2a5t6s3/announcements-db:2ab1b487e9be0e42651f112179068badd9fb945a",
"cpu": 0,
"portMappings": [
{
Expand All @@ -84,9 +84,29 @@
],
"essential": true,
"environment": [
{
"name": "MYSQL_DATABASE",
"value": "announcements"
},
{
"name": "MYSQL_PASSWORD",
"value": "mypassword"
},
{
"name": "MYSQL_PORT",
"value": "3306"
},
{
"name": "MYSQL_HOST",
"value": "localhost"
},
{
"name": "MYSQL_ROOT_PASSWORD",
"value": "password"
},
{
"name": "MYSQL_USER",
"value": "myuser"
}
],
"mountPoints": [],
Expand Down Expand Up @@ -117,7 +137,7 @@
"family": "announcements-task",
"executionRoleArn": "arn:aws:iam::576133371502:role/ecsTaskExecutionRole",
"networkMode": "awsvpc",
"revision": 4,
"revision": 7,
"volumes": [],
"status": "ACTIVE",
"requiresAttributes": [
Expand Down Expand Up @@ -160,7 +180,7 @@
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
},
"registeredAt": "2024-03-28T17:57:10.716Z",
"registeredAt": "2024-03-28T18:14:07.228Z",
"registeredBy": "arn:aws:sts::576133371502:assumed-role/AWSReservedSSO_AWSAdministratorAccess_127735a294629d13/[email protected]",
"tags": []
}
1 change: 1 addition & 0 deletions Containerfile-db
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ COPY ./my.cnf /etc/mysql/conf.d/
RUN chmod 777 /var/run/mysqld
RUN chmod 777 /var/lib/mysql

ADD ./setup.sql /docker-entrypint-initdb.d
1 change: 1 addition & 0 deletions setup.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%';

0 comments on commit 0641f5b

Please sign in to comment.