Spotto AWS CloudFormation Templates
Launch Stack, the CloudShell command and Terraform deploy the same reviewed templates in your AWS account. The Portal supplies the company trust and regional deployment binding together; keep those values unchanged.
The Templates
Templates are public at https://spotto-aws-onboarding.s3.amazonaws.com/cloudformation/<file>.
Versioned copies use cloudformation/v<version>/<file>. Public template hosting
contains no company credentials, registration messages or CUR files.
| Template | Stack name | Location and responsibility |
|---|---|---|
spotto-aws-connect.template.json | SpottoConnect-<deployment> | Regional access role, optional private billing bucket/policy and regional registration |
spotto-aws-billing-export.template.json | SpottoBillingExport-<deployment> | AWS-global export definition in us-east-1, delivering to the regional bucket |
spotto-aws-billing-access.template.json | SpottoBillingAccess-<deployment> | Read access to one existing export's folder and optional KMS key |
spotto-aws-members.template.json | SpottoMemberAccounts-<deployment> | Regional service-managed member-role StackSet |
spotto-aws-member-role.template.json | Deployed by the StackSet | Member role and read policy |
| Spotto geography | Access stack, registration topic and new CUR bucket |
|---|---|
| AU | Sydney (ap-southeast-2) |
| US | N. Virginia (us-east-1) |
| EU | Stockholm (eu-north-1) |
Development AU and production AU are separate deployments despite both using Sydney.
Stack and billing resource names include the deployment to avoid clashes within an AWS
account. The role is named SpottoReadOnlyRole in every deployment.
AWS Data Exports only offers its definition control plane in us-east-1. A separate
billing-only stack creates that definition after the regional access stack is ready.
The new private bucket stays in the mapped geography. No Lambda or EC2 application
is installed. The billing stack contains no External ID or SNS registration.
Parameters
The Portal supplies these values; scripts and Terraform consume the same binding.
| Parameter | Where | Meaning |
|---|---|---|
Deployment | Connect, billing export | dev-au, prod-au, prod-us or prod-eu |
RegistrationTopicArn | Connect | Exact owning topic; paired with deployment and stack region |
BillingExportName | Connect | spotto-cur2-<deployment>, paired with deployment |
ExternalId, TrustedPrincipalArn | Access/member templates | Company trust values from Portal |
RoleName | Access/member/billing-access | Name supplied by Portal; do not rename an existing role |
CostData | Connect | CreateExport prepares regional storage/read access; None is for an existing export |
BucketRegion | Billing export | Delivery region, which must match deployment |
ExportName, BucketName, BasePrefix, KmsKeyArn | Billing access | Exact existing export destination and optional customer-managed encryption key |
OrganizationalUnitIds | Members | Root/OU IDs for member roles |
RepairToken | Access/member/billing-access | Explicit policy reapplication token; see repair |
The billing-export stack derives its bucket and export names from the current AWS
account and deployment; it does not accept a different bucket owner or a free-form
bucket name. The regional access stack outputs RoleArn, BillingBucketName and
BillingBucketRegion. The global definition stack outputs ExportArn.
How The Stack Registers
The regional access stack's SpottoRegistration custom resource publishes to
arn:aws:sns:<region>:715809501612:spotto-aws-connect-<deployment>. That topic has
only its owning regional API subscriber. Another geography or development environment
does not receive the payload. The message includes the company External ID, stack
identity, role ARN, cost-data choice, bucket name and template version.
- CloudFormation creates the role and selected regional storage/delivery policy.
- The owning API validates the topic, SNS signature, stack region, company binding and regional CloudFormation response URL, then acknowledges the operation.
- The stack completes. Registration waits up to five minutes for this response.
- The Portal proves access with AssumeRole; registration alone grants no access.
- For new billing, select Create Billing Export in AWS, approve the separate definition stack, then select Check Again. Files stay in the displayed region.
- Select Finish only after billing definition and storage access validate.
The API remains necessary for access-stack updates/deletion. Registration records currently have no automatic expiry; the Portal applies a detection window when showing earlier connections. A deleted registration does not offboard a saved estate.
Update A Stack
Use the stack's own region. Access/member stacks are regional; the billing-definition stack is in us-east-1. Keep deployment, topic, role name and bucket region consistent. Use a reviewed versioned template URL for updates. Rerunning the CLI or applying Terraform updates both parts in the required order.
Delete The Stacks
Remove the accounts from Spotto first. Then delete member, billing-access and access stacks in their regional CloudFormation console. Remove the billing-definition stack in us-east-1 when retiring that setup. The bucket, its delivery policy and export definition are retained. Deleting a stack does not erase billing data or necessarily stop delivery.
To stop delivery and remove retained data, deliberately delete the export through Billing and Cost Management, then empty/delete the regional bucket. Do not remove billing data as an incidental repair. Review retention requirements first.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| Deployment/region/topic rule fails | Values came from different boundaries. Copy a fresh complete link from the owning Portal. |
| Registration times out | Check External ID, the exact owning SNS topic, SCP Publish restrictions and owning API availability. |
| Role or export name already exists | Review the existing owner; reuse a supported existing export or the intended deployment. Do not delete billing data automatically. |
| Export-definition stack fails | Confirm the regional access stack finished and the destination policy exists. AWS permits five CUR 2.0 exports per account. |
| Stack is complete but billing is missing | Complete the definition-only stack, then Check Again. The first files can take up to 24 hours. |
| IAM capability acknowledgement required | Tick the named-IAM acknowledgement when deploying access templates. |
| Member StackSet fails | Enable CloudFormation StackSets trusted access in the management account. |
See supported exports, update and repair, and role validation troubleshooting.