Skip to content

Commit 55c8141

Browse files
[td] Fix
1 parent e5738d4 commit 55c8141

File tree

5 files changed

+39
-11
lines changed

5 files changed

+39
-11
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM mageai/mageai:alpha
22

33
ARG PROJECT_NAME=mlops
4-
ARG MAGE_CODE_PATH=/home/mage_code
4+
ARG MAGE_CODE_PATH=/home/src
55
ARG USER_CODE_PATH=${MAGE_CODE_PATH}/${PROJECT_NAME}
66

77
WORKDIR ${MAGE_CODE_PATH}

scripts/start.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
MAGE_CODE_PATH=/home/mage_code \
3+
MAGE_CODE_PATH=/home/src \
44
PROJECT_NAME=mlops \
55
SMTP_EMAIL=$SMTP_EMAIL \
66
SMTP_PASSWORD=$SMTP_PASSWORD \

terraform/aws/env_vars.json

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
"name": "AWS_REGION_NAME",
1616
"value": "${aws_region_name}"
1717
},
18+
{
19+
"name": "MAGE_DATABASE_CONNECTION_URL",
20+
"value": "${database_connection_url}"
21+
},
1822
{
1923
"name": "MAGE_EC2_SUBNET_ID",
2024
"value": "${ec2_subnet_id}"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"Version": "2012-10-17",
3+
"Statement": [
4+
{
5+
"Effect": "Allow",
6+
"Action": [
7+
"ecr:BatchCheckLayerAvailability",
8+
"ecr:CompleteLayerUpload",
9+
"ecr:GetAuthorizationToken",
10+
"ecr:InitiateLayerUpload",
11+
"ecr:PutImage",
12+
"ecr:UploadLayerPart",
13+
"ecs:DeregisterTaskDefinition",
14+
"ecs:DescribeClusters",
15+
"ecs:DescribeServices",
16+
"ecs:DescribeTaskDefinition",
17+
"ecs:RegisterTaskDefinition",
18+
"ecs:UpdateService",
19+
"iam:PassRole"
20+
],
21+
"Resource": "*"
22+
}
23+
]
24+
}

terraform/aws/variables.tf

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
variable "AWS_ACCESS_KEY_ID" {
2-
type = string
3-
default = "AWS_ACCESS_KEY_ID"
2+
type = string
3+
default = "AWS_ACCESS_KEY_ID"
44
}
55

66
variable "AWS_SECRET_ACCESS_KEY" {
7-
type = string
8-
default = "AWS_SECRET_ACCESS_KEY"
7+
type = string
8+
default = "AWS_SECRET_ACCESS_KEY"
99
}
1010

1111
variable "DATABASE_CONNECTION_URL" {
12-
type = string
13-
default = ""
12+
type = string
13+
default = ""
1414
}
1515

1616
variable "app_count" {
17-
type = number
18-
default = 1
17+
type = number
18+
default = 1
1919
}
2020

2121
variable "aws_region" {
@@ -112,4 +112,4 @@ variable "smtp_password" {
112112
description = "Dynamically added by the Mage Python script."
113113
default = ""
114114
type = string
115-
}
115+
}

0 commit comments

Comments
 (0)