File tree 5 files changed +39
-11
lines changed
5 files changed +39
-11
lines changed Original file line number Diff line number Diff line change 1
1
FROM mageai/mageai:alpha
2
2
3
3
ARG PROJECT_NAME=mlops
4
- ARG MAGE_CODE_PATH=/home/mage_code
4
+ ARG MAGE_CODE_PATH=/home/src
5
5
ARG USER_CODE_PATH=${MAGE_CODE_PATH}/${PROJECT_NAME}
6
6
7
7
WORKDIR ${MAGE_CODE_PATH}
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- MAGE_CODE_PATH=/home/mage_code \
3
+ MAGE_CODE_PATH=/home/src \
4
4
PROJECT_NAME=mlops \
5
5
SMTP_EMAIL=$SMTP_EMAIL \
6
6
SMTP_PASSWORD=$SMTP_PASSWORD \
Original file line number Diff line number Diff line change 15
15
"name" : " AWS_REGION_NAME" ,
16
16
"value" : " ${aws_region_name}"
17
17
},
18
+ {
19
+ "name" : " MAGE_DATABASE_CONNECTION_URL" ,
20
+ "value" : " ${database_connection_url}"
21
+ },
18
22
{
19
23
"name" : " MAGE_EC2_SUBNET_ID" ,
20
24
"value" : " ${ec2_subnet_id}"
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 1
1
variable "AWS_ACCESS_KEY_ID" {
2
- type = string
3
- default = " AWS_ACCESS_KEY_ID"
2
+ type = string
3
+ default = " AWS_ACCESS_KEY_ID"
4
4
}
5
5
6
6
variable "AWS_SECRET_ACCESS_KEY" {
7
- type = string
8
- default = " AWS_SECRET_ACCESS_KEY"
7
+ type = string
8
+ default = " AWS_SECRET_ACCESS_KEY"
9
9
}
10
10
11
11
variable "DATABASE_CONNECTION_URL" {
12
- type = string
13
- default = " "
12
+ type = string
13
+ default = " "
14
14
}
15
15
16
16
variable "app_count" {
17
- type = number
18
- default = 1
17
+ type = number
18
+ default = 1
19
19
}
20
20
21
21
variable "aws_region" {
@@ -112,4 +112,4 @@ variable "smtp_password" {
112
112
description = " Dynamically added by the Mage Python script."
113
113
default = " "
114
114
type = string
115
- }
115
+ }
You can’t perform that action at this time.
0 commit comments