Skip to main content

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.

TemplateStack nameLocation and responsibility
spotto-aws-connect.template.jsonSpottoConnect-<deployment>Regional access role, optional private billing bucket/policy and regional registration
spotto-aws-billing-export.template.jsonSpottoBillingExport-<deployment>AWS-global export definition in us-east-1, delivering to the regional bucket
spotto-aws-billing-access.template.jsonSpottoBillingAccess-<deployment>Read access to one existing export's folder and optional KMS key
spotto-aws-members.template.jsonSpottoMemberAccounts-<deployment>Regional service-managed member-role StackSet
spotto-aws-member-role.template.jsonDeployed by the StackSetMember role and read policy
Spotto geographyAccess stack, registration topic and new CUR bucket
AUSydney (ap-southeast-2)
USN. Virginia (us-east-1)
EUStockholm (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.

ParameterWhereMeaning
DeploymentConnect, billing exportdev-au, prod-au, prod-us or prod-eu
RegistrationTopicArnConnectExact owning topic; paired with deployment and stack region
BillingExportNameConnectspotto-cur2-<deployment>, paired with deployment
ExternalId, TrustedPrincipalArnAccess/member templatesCompany trust values from Portal
RoleNameAccess/member/billing-accessName supplied by Portal; do not rename an existing role
CostDataConnectCreateExport prepares regional storage/read access; None is for an existing export
BucketRegionBilling exportDelivery region, which must match deployment
ExportName, BucketName, BasePrefix, KmsKeyArnBilling accessExact existing export destination and optional customer-managed encryption key
OrganizationalUnitIdsMembersRoot/OU IDs for member roles
RepairTokenAccess/member/billing-accessExplicit 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.

  1. CloudFormation creates the role and selected regional storage/delivery policy.
  2. The owning API validates the topic, SNS signature, stack region, company binding and regional CloudFormation response URL, then acknowledges the operation.
  3. The stack completes. Registration waits up to five minutes for this response.
  4. The Portal proves access with AssumeRole; registration alone grants no access.
  5. For new billing, select Create Billing Export in AWS, approve the separate definition stack, then select Check Again. Files stay in the displayed region.
  6. 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​

SymptomCause and fix
Deployment/region/topic rule failsValues came from different boundaries. Copy a fresh complete link from the owning Portal.
Registration times outCheck External ID, the exact owning SNS topic, SCP Publish restrictions and owning API availability.
Role or export name already existsReview the existing owner; reuse a supported existing export or the intended deployment. Do not delete billing data automatically.
Export-definition stack failsConfirm 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 missingComplete the definition-only stack, then Check Again. The first files can take up to 24 hours.
IAM capability acknowledgement requiredTick the named-IAM acknowledgement when deploying access templates.
Member StackSet failsEnable CloudFormation StackSets trusted access in the management account.

See supported exports, update and repair, and role validation troubleshooting.