fixed invalid references
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
parent
b13ac200f3
commit
d26ed13d88
@ -72,7 +72,7 @@ backend: {
|
|||||||
|
|
||||||
// Docker image built from source, pushed to ECR
|
// Docker image built from source, pushed to ECR
|
||||||
image: #ECRImage & {
|
image: #ECRImage & {
|
||||||
source: source
|
source: backend.source
|
||||||
repository: infra.ecrRepository
|
repository: infra.ecrRepository
|
||||||
tag: slug
|
tag: slug
|
||||||
awsConfig: infra.awsConfig
|
awsConfig: infra.awsConfig
|
||||||
@ -92,7 +92,7 @@ backend: {
|
|||||||
if infra.ecsTaskRoleArn != _|_ {
|
if infra.ecsTaskRoleArn != _|_ {
|
||||||
taskRoleArn: infra.ecsTaskRoleArn
|
taskRoleArn: infra.ecsTaskRoleArn
|
||||||
}
|
}
|
||||||
hostname: hostname
|
hostname: backend.hostname
|
||||||
healthCheck: {
|
healthCheck: {
|
||||||
timeout: backend.container.healthCheckTimeout
|
timeout: backend.container.healthCheckTimeout
|
||||||
path: backend.container.healthCheckPath
|
path: backend.container.healthCheckPath
|
||||||
@ -101,7 +101,7 @@ backend: {
|
|||||||
desiredCount: backend.container.desiredCount
|
desiredCount: backend.container.desiredCount
|
||||||
container: {
|
container: {
|
||||||
command: backend.container.command
|
command: backend.container.command
|
||||||
environment: environment
|
environment: backend.environment
|
||||||
port: backend.container.port
|
port: backend.container.port
|
||||||
memory: backend.container.memory
|
memory: backend.container.memory
|
||||||
"image": image.ref
|
"image": image.ref
|
||||||
|
@ -42,11 +42,8 @@ import (
|
|||||||
}
|
}
|
||||||
buildArg: buildArgs
|
buildArg: buildArgs
|
||||||
},
|
},
|
||||||
op.Export & {
|
op.#PushContainer & {
|
||||||
format: "string"
|
|
||||||
source: op.#PushContainer & {
|
|
||||||
ref: pushTarget
|
ref: pushTarget
|
||||||
}
|
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@ import (
|
|||||||
clusterName: string
|
clusterName: string
|
||||||
vpcId: string
|
vpcId: string
|
||||||
elbListenerArn: string
|
elbListenerArn: string
|
||||||
tlsCertificateArn: string
|
|
||||||
taskRoleArn: *"" | string
|
taskRoleArn: *"" | string
|
||||||
hostname: string
|
hostname: string
|
||||||
healthCheck: {
|
healthCheck: {
|
||||||
@ -48,7 +47,6 @@ import (
|
|||||||
ELBRulePriority: elbRulePriority.out
|
ELBRulePriority: elbRulePriority.out
|
||||||
ImageRef: container.image
|
ImageRef: container.image
|
||||||
ELBListenerArn: elbListenerArn
|
ELBListenerArn: elbListenerArn
|
||||||
TLSCertificateArn: tlsCertificateArn
|
|
||||||
}
|
}
|
||||||
source: json.Marshal(template)
|
source: json.Marshal(template)
|
||||||
}
|
}
|
||||||
@ -60,16 +58,8 @@ import (
|
|||||||
ELBRulePriority: Type: "Number"
|
ELBRulePriority: Type: "Number"
|
||||||
ImageRef: Type: "String"
|
ImageRef: Type: "String"
|
||||||
ELBListenerArn: Type: "String"
|
ELBListenerArn: Type: "String"
|
||||||
TLSCertificateArn: Type: "String"
|
|
||||||
}
|
}
|
||||||
Resources: {
|
Resources: {
|
||||||
TLSCertificate: {
|
|
||||||
Type: "AWS::ElasticLoadBalancingV2::ListenerCertificate"
|
|
||||||
Properties: {
|
|
||||||
Certificates: [ {CertificateArn: Ref: "TLSCertificateArn"}]
|
|
||||||
ListenerArn: Ref: "ELBListenerArn"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ECSTaskDefinition: {
|
ECSTaskDefinition: {
|
||||||
Type: "AWS::ECS::TaskDefinition"
|
Type: "AWS::ECS::TaskDefinition"
|
||||||
Properties: {
|
Properties: {
|
||||||
|
@ -17,8 +17,6 @@ import (
|
|||||||
|
|
||||||
aws.#Script & {
|
aws.#Script & {
|
||||||
files: {
|
files: {
|
||||||
"/inputs/aws/access_key": config.accessKey
|
|
||||||
"/inputs/aws/secret_key": config.secretKey
|
|
||||||
"/inputs/listenerArn": listenerArn
|
"/inputs/listenerArn": listenerArn
|
||||||
if vhost != _|_ {
|
if vhost != _|_ {
|
||||||
"/inputs/vhost": vhost
|
"/inputs/vhost": vhost
|
||||||
|
Reference in New Issue
Block a user