Skip to main content

/ipa-stack-backend

Backend tier stack: Lambda function with API Gateway v2 and optional DynamoDB tables.

Stack Identity​

PropertyValue
Stack name{APP_NAMESPACE}-{APP_ENV}-backend
Templateinfra/cfn/backend/backend.yml
CapabilitiesCAPABILITY_NAMED_IAM
Lifecycledeploy

Parameters​

Wirable Parameters​

These parameters are automatically wired from other stack outputs by /ipa-compose:

ParameterSourceRequired
ImageUriecr.RepositoryUriYes
AuthIssuercognito.IssuerUrlYes
AuthAudiencecognito.UserPoolClientIdYes
SqsQueueUrlqueue.QueueUrlConditional (when EnableSqsIntegration is true)
SqsSendQueueArnsqueue.QueueArnConditional (when EnableSqsIntegration is true)

Configurable Parameters​

ParameterDefaultDescription
FunctionName{namespace}-{env}-apiLambda function name
MemorySize512Lambda memory in MB
Timeout30Lambda timeout in seconds
ImageCommand(template default)Container image command override

Feature Flags​

FlagDefaultEffect
EnablePassengersTablefalseCreates a DynamoDB Passengers table
EnableSqsIntegrationfalseGrants SQS send permissions and injects SQS_QUEUE_URL environment variable

Outputs​

OutputDescription
ApiUrlHTTP API Gateway invoke URL
FunctionArnLambda function ARN
FunctionNameLambda function name
PassengersTableArnDynamoDB table ARN (only when EnablePassengersTable is true)

Deploy Order​

Backend deploys after Queue when both stacks are in the same pattern, because backend may need the Queue URL for SQS integration wiring.