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 (instance) #5141

Closed
zbuchheit opened this issue Jan 27, 2025 · 4 comments
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). 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

Comments

@zbuchheit
Copy link

Describe what happened

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

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

Sample program

import * as aws from "@pulumi/aws";

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",
});

Log output

No response

Affected Resource(s)

No response

Output of pulumi about

CLI          
Version      3.147.1-dev.0
Go Version   go1.23.3
Go Compiler  gc

Plugins
KIND      NAME          VERSION
resource  aws           6.67.0
resource  awsx          2.19.0
language  nodejs        3.143.0-dev.0

Host     
OS       darwin
Version  15.1.1
Arch     arm64

This project is written in nodejs: executable='/Users/zbuchheit/.nvm/versions/node/v18.17.1/bin/node' version='v18.17.1'

Current Stack: zbuchheit-pulumi-corp/pulumi-ts-aws/dev

Found no resources associated with dev

Found no pending operations associated with dev

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/zbuchheit-pulumi-corp
User           zbuchheit-pulumi-corp
Organizations  zbuchheit-pulumi-corp
Token type     personal

Dependencies:
NAME                  VERSION
typescript            5.7.2
@pulumi/aws           6.67.0
@pulumi/awsx          2.19.0
@types/node           20.17.11

Pulumi locates its logs in /var/folders/lh/l71cdh810xb33t0jc7qmt5_80000gn/T/ by default

Additional context

similar issue to #5031

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 labels Jan 27, 2025
@zbuchheit
Copy link
Author

upstream issue: hashicorp/terraform-provider-aws#41108

@zbuchheit zbuchheit added customer/feedback Feedback from customers customer/lighthouse Lighthouse customer bugs labels Jan 27, 2025
@zbuchheit
Copy link
Author

I opened up a PR upstream to fix the issue hashicorp/terraform-provider-aws#41111

@t0yv0 t0yv0 added awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). and removed needs-triage Needs attention from the triage team labels Jan 29, 2025
@zbuchheit
Copy link
Author

can close once v5.85.0 upstream is released

@corymhall corymhall added the resolution/fixed This issue was fixed label Feb 10, 2025
@corymhall
Copy link
Contributor

upstream v5.85.0 was released in v6.68.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). 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

3 participants