Skip to content

Migrate samples to lstk, away from awslocal and tflocal#17

Open
peter-smith-phd wants to merge 5 commits into
localstack-samples:masterfrom
peter-smith-phd:dpx-503-update-terraform-samples
Open

Migrate samples to lstk, away from awslocal and tflocal#17
peter-smith-phd wants to merge 5 commits into
localstack-samples:masterfrom
peter-smith-phd:dpx-503-update-terraform-samples

Conversation

@peter-smith-phd

@peter-smith-phd peter-smith-phd commented Jun 8, 2026

Copy link
Copy Markdown

Summary

As part of our migration to using lstk as the default CLI for LocalStack, this PR updates the Terraform samples. Standardizes all samples on using the lstk CLI for starting LocalStack and running Terraform, replacing the awslocal/tflocal wrappers currently used.

Details:

  • Modernizing the Terraform examples was necessary due to behaviours that are now deprecated.
  • Commonality in sample Makefiles was refactored into a single common.mk. All other Makefiles simply reference this common code.
  • README files were updated to refer to lstk.
  • I used these samples as a means of testing the lstk terraform feature that was recently launched.

Testing

Ran make ci-test-all and confirmed that each sample deploys correctly, without any deprecation warnings.

🤖 Generated with Claude Code

peter-smith-phd and others added 2 commits June 8, 2026 13:54
Standardize all samples on the lstk CLI for starting LocalStack and
running Terraform, replacing the awslocal/tflocal wrappers. Modernizing
the examples along the way was necessary to get them deploying and
passing again: fix API Gateway deployment ordering, use $default stages
for HTTP APIs, add missing stages/permissions, and bump deprecated
runtimes and service versions.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Collapse the two root Makefile `lint` targets into one (terraform fmt),
removing the "overriding commands for target lint" warning. The lint
target now skips the sample-archive directory. Replace deprecated
data.aws_region.current.id with .region in apigatewayv2-ws-request-authorizer
to clear the Terraform deprecation warning.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@peter-smith-phd peter-smith-phd force-pushed the dpx-503-update-terraform-samples branch from 0c98d04 to 9cd2e31 Compare June 8, 2026 03:45
peter-smith-phd and others added 3 commits June 8, 2026 15:48
Reformat files flagged by `make lint` (whitespace/alignment only).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@peter-smith-phd peter-smith-phd marked this pull request as ready for review June 11, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant