Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/pkg/deploy/cloudformation/stack/rd_web_svc.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func (s *RequestDrivenWebService) Template() (string, error) {
PermissionsBoundary: s.permBound,
Private: !s.manifest.Private.IsZero(),
AppRunnerVPCEndpoint: s.manifest.Private.Advanced.Endpoint,
Count: s.manifest.Count,
})
if err != nil {
return "", err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func TestRequestDrivenWebService_Template(t *testing.T) {
WorkloadType: manifest.RequestDrivenWebServiceType,
Variables: c.manifest.Variables,
Tags: c.manifest.Tags,
Count: c.manifest.Count,
EnableHealthCheck: true,
Alias: aws.String("convex.domain.com"),
CustomResources: map[string]template.S3ObjectLocation{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ network:
vpc:
placement: private

count: 'high-availability/3'

# Optional fields for more advanced use-cases.
#
# variables: # Pass environment variables as key value pairs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ Resources:
EgressConfiguration:
EgressType: VPC
VpcConnectorArn: !Ref VpcConnector
AutoScalingConfigurationArn: 'arn:${AWS::Partition}:apprunner:${AWS::Region}:${AWS::AccountId}:autoscalingconfiguration/high-availability/3'
Tags:
- Key: copilot-application
Value: !Ref AppName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ Resources:
EgressConfiguration:
EgressType: VPC
VpcConnectorArn: !Ref VpcConnector
AutoScalingConfigurationArn: 'arn:${AWS::Partition}:apprunner:${AWS::Region}:${AWS::AccountId}:autoscalingconfiguration/high-availability/3'
Tags:
- Key: copilot-application
Value: !Ref AppName
Expand Down
1 change: 1 addition & 0 deletions internal/pkg/manifest/rd_web_svc.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type RequestDrivenWebServiceConfig struct {
PublishConfig PublishConfig `yaml:"publish"`
Network RequestDrivenWebServiceNetworkConfig `yaml:"network"`
Observability Observability `yaml:"observability"`
Count *string `yaml:"count"`
}

// Observability holds configuration for observability to the service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ Resources:
ObservabilityEnabled: true
ObservabilityConfigurationArn: !Sub 'arn:aws:apprunner:${AWS::Region}:${AWS::AccountId}:observabilityconfiguration/DefaultConfiguration/1/00000000000000000000000000000001'
{{- end }}
{{- if .Count}}
Comment thread
KollaAdithya marked this conversation as resolved.
AutoScalingConfigurationArn: !Sub 'arn:${AWS::Partition}:apprunner:${AWS::Region}:${AWS::AccountId}:autoscalingconfiguration/{{.Count}}'
{{- end}}
Tags:
- Key: copilot-application
Value: !Ref AppName
Expand Down
1 change: 1 addition & 0 deletions internal/pkg/template/workload.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ type WorkloadOpts struct {
Observability ObservabilityOpts
Private bool
AppRunnerVPCEndpoint *string
Count *string

// Input needed for the custom resource that adds a custom domain to the service.
Alias *string
Expand Down