Skip to content

Commit 05df795

Browse files
committed
Add CloudFormation solution tag stack for Terraform infra
Add an empty CloudFormation stack to carry the AWS solution tag, mirroring the CDK FastMainStack description. Also bump Terraform version to 0.4.0-tf.1 and update version bump playbooks accordingly.
1 parent a6f5c8a commit 05df795

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

docs/VERSION_BUMP_PLAYBOOK.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ This document provides a checklist for bumping the version of FAST (Fullstack Ag
99
3. **`frontend/package.json`** - Frontend package version (`"version": "X.Y.Z"`)
1010
4. **`infra-cdk/package.json`** - CDK package version (`"version": "X.Y.Z"`)
1111
5. **`infra-cdk/lib/fast-main-stack.ts`** - Stack description (`(vX.Y.Z)`)
12-
6. **`infra-terraform/VERSION`** - Terraform compatibility version (only update if TF is verified compatible with the new FAST version; see `infra-terraform/TF_VERSION_BUMP_PLAYBOOK.md`)
13-
7. **`CHANGELOG.md`** - Add new version entry at top
12+
6. **`infra-terraform/VERSION`** - Terraform compatibility version (`X.X.X-tf.X`)(only update if TF is verified compatible with the new FAST version; see `infra-terraform/TF_VERSION_BUMP_PLAYBOOK.md`)
13+
7. **`infra-terraform/main.tf`** - Stack description (`(vX.X.X-tf.X)`) (only update if TF is verified compatible with the new FAST version; see `infra-terraform/TF_VERSION_BUMP_PLAYBOOK.md`)
14+
8. **`CHANGELOG.md`** - Add new version entry at top
1415

1516
## Auto-Generated Files (DO NOT manually update)
1617

infra-terraform/TF_VERSION_BUMP_PLAYBOOK.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ Example:
5656
## Procedure
5757

5858
1. Update `infra-terraform/VERSION` with the new version
59-
2. Update `CHANGELOG.md` with `[Terraform]` labeled entries
60-
3. Commit, tag with `v<VERSION>`, and push
59+
2. Update `infra-terraform/main.tf` with the new version in the Cloudformation stack description
60+
3. Update `CHANGELOG.md` with `[Terraform]` labeled entries
61+
4. Commit, tag with `v<VERSION-tf.X>`, and push
6162

6263
```bash
6364
git tag v$(cat infra-terraform/VERSION)

infra-terraform/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.0-tf.0
1+
0.4.0-tf.1

infra-terraform/main.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,23 @@ module "backend" {
9797

9898
depends_on = [module.cognito, module.amplify_hosting]
9999
}
100+
101+
# =============================================================================
102+
# Solution Tag (CloudFormation)
103+
# =============================================================================
104+
# Empty CloudFormation stack for AWS solution tag indicator.
105+
# Maps to: CDK FastMainStack description
106+
107+
resource "aws_cloudformation_stack" "solution_tag" {
108+
name = "${var.stack_name_base}-solution-tag"
109+
110+
template_body = jsonencode({
111+
AWSTemplateFormatVersion = "2010-09-09"
112+
Description = "Fullstack AgentCore Solution Template (v0.4.0-tf.1) (uksb-v6dos0t5g8) (tag: terraform)"
113+
Resources = {
114+
NullResource = {
115+
Type = "AWS::CloudFormation::WaitConditionHandle"
116+
}
117+
}
118+
})
119+
}

0 commit comments

Comments
 (0)