Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDS GetEngineVersionOutput includes exportable log type unknown to Pulumi #5031

Closed
zbuchheit opened this issue Jan 4, 2025 · 4 comments
Closed
Assignees
Labels
customer/feedback Feedback from customers customer/lighthouse Lighthouse customer bugs kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Milestone

Comments

@zbuchheit
Copy link

zbuchheit commented Jan 4, 2025

Describe what happened

When attempting to use rds.GetEngineVersionOutput, I get the following error,

error: aws:rds/cluster:Cluster resource 'my-cluster' has a problem: expected enabled_cloudwatch_logs_exports.1 to be one of ["audit" "error" "general" "postgresql" "slowquery" "upgrade"], got iam-db-auth-error. Examine values at 'my-cluster.enabledCloudwatchLogsExports'.

if you do aws rds describe-db-engine-versions it produces

           "ExportableLogTypes": [
                "iam-db-auth-error",
                "postgresql"
            ],

Which supports the error stating it is getting back an invalid value.

Sample program

TODO

Log output

No response

Affected Resource(s)

No response

Output of pulumi about

pulumi-aws (6.66.2)

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@zbuchheit zbuchheit added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team customer/feedback Feedback from customers customer/lighthouse Lighthouse customer bugs labels Jan 4, 2025
@corymhall corymhall self-assigned this Jan 6, 2025
@corymhall
Copy link
Contributor

I was able to reproduce it with

const versionOutput = aws.rds.getEngineVersionOutput({
  engine: 'aurora-postgresql',
});

new aws.rds.Cluster('cluster', {
  engine: 'aurora-postgresql',
  allocatedStorage: 20,
  enabledCloudwatchLogsExports: versionOutput.exportableLogTypes,
  manageMasterUserPassword: true,
  masterUsername: 'admin',
  skipFinalSnapshot: true,
  dbClusterInstanceClass: aws.rds.InstanceType.T3_Micro,
  engineVersion: '16.6',
});

@corymhall
Copy link
Contributor

created an issue with upstream hashicorp/terraform-provider-aws#40787

@corymhall corymhall removed the needs-triage Needs attention from the triage team label Jan 6, 2025
@corymhall
Copy link
Contributor

Created a PR upstream hashicorp/terraform-provider-aws#40789

@flostadler
Copy link
Contributor

Fixed by #5086

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer/feedback Feedback from customers customer/lighthouse Lighthouse customer bugs kind/bug Some behavior is incorrect or out of spec resolution/fixed This issue was fixed
Projects
None yet
Development

No branches or pull requests

5 participants