Add ignore_changes for replicate_source_db and Configure Subnet Group with Public Access for RDS Replica #31
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.
This pull request includes two main updates:
Lifecycle Ignore for replicate_source_db:
Added a lifecycle block with ignore_changes for the replicate_source_db attribute in the aws_db_instance resource.
This change addresses a limitation where updates to the ARN require the resource name to be updated. By ignoring changes to replicate_source_db, we prevent unnecessary updates and maintain consistency with the current workaround.
Subnet Group and Public Access Configuration for RDS Replica:
Added a new subnet group configuration for the RDS replica to ensure it operates across different subnets.
Enabled the public access flag for the RDS replica to facilitate external connectivity if required.
Changes Made:
Ignore Changes: Applied ignore_changes to the replicate_source_db attribute to handle ARN update limitations.
Subnet Group: Configured a new subnet group for the RDS replica.