Skip to content

Commit

Permalink
Merge pull request #97 from 4m9d:aws-migration
Browse files Browse the repository at this point in the history
Aws migration
  • Loading branch information
oikkoikk authored Dec 8, 2023
2 parents 782468b + d3078aa commit bb37346
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 26 deletions.
2 changes: 0 additions & 2 deletions src/components/ui/button/CloseButton.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

type Props = {
className?: string;
onClick: () => void;
Expand Down
26 changes: 13 additions & 13 deletions task-definition-release.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"executionRoleArn": "arn:aws:iam::224066583965:role/AWSECSTaskExecutionRole",
"executionRoleArn": "arn:aws:iam::804073597504:role/AWSECSTaskExecutionRole",
"containerDefinitions": [
{
"dnsSearchDomains": null,
Expand All @@ -8,7 +8,7 @@
"logDriver": "awslogs",
"secretOptions": null,
"options": {
"awslogs-group": "/ecs/frontend-task",
"awslogs-group": "/ecs/fe-release",
"awslogs-region": "ap-northeast-2",
"awslogs-stream-prefix": "ecs"
}
Expand All @@ -32,28 +32,28 @@
"workingDirectory": null,
"secrets": [
{
"valueFrom": "arn:aws:ssm:ap-northeast-2:224066583965:parameter/sroom/fe/NEXT_PUBLIC_GOOGLE_CLIENT_ID",
"name": "NEXT_PUBLIC_GOOGLE_CLIENT_ID"
"name": "NEXTAUTH_SECRET",
"valueFrom": "arn:aws:ssm:ap-northeast-2:804073597504:parameter/sroom/fe/NEXTAUTH_SECRET"
},
{
"valueFrom": "arn:aws:ssm:ap-northeast-2:224066583965:parameter/sroom/fe/NEXT_PUBLIC_CHANNEL_TALK_PLUGIN_KEY",
"name": "NEXT_PUBLIC_CHANNEL_TALK_PLUGIN_KEY"
"name": "NEXT_PUBLIC_CHANNEL_TALK_PLUGIN_KEY",
"valueFrom": "arn:aws:ssm:ap-northeast-2:804073597504:parameter/sroom/fe/NEXT_PUBLIC_CHANNEL_TALK_PLUGIN_KEY"
},
{
"valueFrom": "arn:aws:ssm:ap-northeast-2:224066583965:parameter/sroom/fe/NEXTAUTH_SECRET",
"name": "NEXTAUTH_SECRET"
"name": "NEXT_PUBLIC_GOOGLE_CLIENT_ID",
"valueFrom": "arn:aws:ssm:ap-northeast-2:804073597504:parameter/sroom/fe/NEXT_PUBLIC_GOOGLE_CLIENT_ID"
},
{
"valueFrom": "arn:aws:ssm:ap-northeast-2:224066583965:parameter/sroom/fe/NEXT_PUBLIC_SENTRY_DSN",
"name": "NEXT_PUBLIC_SENTRY_DSN"
"name": "NEXT_PUBLIC_SENTRY_DSN",
"valueFrom": "arn:aws:ssm:ap-northeast-2:804073597504:parameter/sroom/fe/NEXT_PUBLIC_SENTRY_DSN"
}
],
"dockerSecurityOptions": null,
"memory": null,
"memoryReservation": 500,
"volumesFrom": [],
"stopTimeout": null,
"image": "224066583965.dkr.ecr.ap-northeast-2.amazonaws.com/fe-repo:release",
"image": "804073597504.dkr.ecr.ap-northeast-2.amazonaws.com/fe-repo:release",
"startTimeout": null,
"firelensConfiguration": null,
"dependsOn": null,
Expand All @@ -75,8 +75,8 @@
],
"placementConstraints": [],
"memory": null,
"taskRoleArn": "arn:aws:iam::224066583965:role/AWSECSTaskExecutionRole",
"family": "frontend-task",
"taskRoleArn": "arn:aws:iam::804073597504:role/AWSECSTaskExecutionRole",
"family": "fe-release",
"pidMode": null,
"requiresCompatibilities": ["EC2"],
"networkMode": "bridge",
Expand Down
22 changes: 11 additions & 11 deletions task-definition-test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"executionRoleArn": "arn:aws:iam::224066583965:role/AWSECSTaskExecutionRole",
"executionRoleArn": "arn:aws:iam::804073597504:role/AWSECSTaskExecutionRole",
"containerDefinitions": [
{
"dnsSearchDomains": null,
Expand Down Expand Up @@ -32,28 +32,28 @@
"workingDirectory": null,
"secrets": [
{
"valueFrom": "arn:aws:ssm:ap-northeast-2:224066583965:parameter/sroom/fe/NEXT_PUBLIC_GOOGLE_CLIENT_ID",
"name": "NEXT_PUBLIC_GOOGLE_CLIENT_ID"
"name": "NEXTAUTH_SECRET",
"valueFrom": "arn:aws:ssm:ap-northeast-2:804073597504:parameter/sroom/fe/NEXTAUTH_SECRET"
},
{
"valueFrom": "arn:aws:ssm:ap-northeast-2:224066583965:parameter/sroom/fe/NEXT_PUBLIC_CHANNEL_TALK_PLUGIN_KEY",
"name": "NEXT_PUBLIC_CHANNEL_TALK_PLUGIN_KEY"
"name": "NEXT_PUBLIC_CHANNEL_TALK_PLUGIN_KEY",
"valueFrom": "arn:aws:ssm:ap-northeast-2:804073597504:parameter/sroom/fe/NEXT_PUBLIC_CHANNEL_TALK_PLUGIN_KEY"
},
{
"valueFrom": "arn:aws:ssm:ap-northeast-2:224066583965:parameter/sroom/fe/NEXTAUTH_SECRET",
"name": "NEXTAUTH_SECRET"
"name": "NEXT_PUBLIC_GOOGLE_CLIENT_ID",
"valueFrom": "arn:aws:ssm:ap-northeast-2:804073597504:parameter/sroom/fe/NEXT_PUBLIC_GOOGLE_CLIENT_ID"
},
{
"valueFrom": "arn:aws:ssm:ap-northeast-2:224066583965:parameter/sroom/fe/NEXT_PUBLIC_SENTRY_DSN",
"name": "NEXT_PUBLIC_SENTRY_DSN"
"name": "NEXT_PUBLIC_SENTRY_DSN",
"valueFrom": "arn:aws:ssm:ap-northeast-2:804073597504:parameter/sroom/fe/NEXT_PUBLIC_SENTRY_DSN"
}
],
"dockerSecurityOptions": null,
"memory": null,
"memoryReservation": 500,
"volumesFrom": [],
"stopTimeout": null,
"image": "224066583965.dkr.ecr.ap-northeast-2.amazonaws.com/fe-repo:test",
"image": "804073597504.dkr.ecr.ap-northeast-2.amazonaws.com/fe-repo:test",
"startTimeout": null,
"firelensConfiguration": null,
"dependsOn": null,
Expand All @@ -75,7 +75,7 @@
],
"placementConstraints": [],
"memory": null,
"taskRoleArn": "arn:aws:iam::224066583965:role/AWSECSTaskExecutionRole",
"taskRoleArn": "arn:aws:iam::804073597504:role/AWSECSTaskExecutionRole",
"family": "fe-test",
"pidMode": null,
"requiresCompatibilities": ["EC2"],
Expand Down

0 comments on commit bb37346

Please sign in to comment.