Conversation
Exposes the top-level `type` field from an app spec (defaults to "container" when absent). Static app specs declare `type: static`; the output lets config layers inspect the type without re-parsing the raw spec. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fork of the docs module for hosting arbitrary static files behind Okta SSO. Keeps the same infrastructure (S3 + CloudFront + Lambda@Edge OIDC) but removes MkDocs-specific assumptions: - No docs.enabled filter — all apps passed to the module are hosted - All prefixes are protected (OIDC required for every app) - project renamed to cfa-static-apps - subdomain default changed from "docs" to "apps" - Fixes the cfa-docummentation typo in the KMS alias from the original Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
tofu/configs/static/ instantiates the static-app module following the same pattern as configs/docs/: a locals.tf discovers app specs from apps/*.yaml, appspec modules parse them, and the static module wires everything together. .github/workflows/deploy-static.yml is a reusable workflow_call target. Apps call it by passing AWS_STATIC_ROLE_ARN (secret) and STATIC_BUCKET + STATIC_PREFIX (vars). CLOUDFRONT_DISTRIBUTION_ID is optional — if set, the workflow invalidates the prefix after sync. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
TFLint flagged four issues in configs/static — all from three files that were present in configs/docs but not carried over: - versions.tf: required_version constraint (terraform_required_version) - providers.tf: AWS provider with default_tags, which also consumes the program and project variables (terraform_unused_declarations) - outputs.tf: exposes deploy_roles, endpoint_url, prefixes from the static module (terraform_standard_module_structure) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Using aws_lambda_function.oidc.logging_config[0].log_group as a for_each key fails at plan time because it's an apply-time attribute. Lambda always creates the log group at /aws/lambda/<function_name>, so we can construct the path from local.prefix instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Plan output for static config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.