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