Skip to content

Prevent drift in the RDS TLS parameter apply method - #11

Merged
adit-chandra merged 2 commits into
mainfrom
adit/pig-aws-tls-parameter
Sep 18, 2026
Merged

adit-chandra merged 2 commits into
mainfrom
adit/pig-aws-tls-parameter

Conversation

@adit-chandra

@adit-chandra adit-chandra commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

A fresh RDS PostgreSQL 16 instance reports rds.force_ssl=1 with apply_method=pending-reboot, even though the provider defaults the configured method to immediate. The next Terraform Cloud plan therefore proposes a parameter-group update immediately after installation.

Declare pending-reboot explicitly to match the observed AWS representation while preserving the required value of 1. New databases receive the parameter group at creation; applying a changed group to an existing database may require a reboot, so operators must verify TLS enforcement.

Validation: Terraform formatting, AWS example validation, and both AWS module mock contract tests pass. The real acceptance cluster negotiated TLS 1.3 with verify-full, rejected an unencrypted PostgreSQL connection, and passed native IRSA S3 write/read verification. Terraform Cloud also completed a real plan using this exact module source with zero additions, changes, and deletions; no further apply was needed. This is infrastructure evidence, not canonical PIG acceptance.

@adit-chandra
adit-chandra merged commit 09621c2 into main Sep 18, 2026
9 checks passed
@adit-chandra
adit-chandra deleted the adit/pig-aws-tls-parameter branch September 18, 2026 19:31
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