Skip to content

Serverless Repository CFN Stacks Fail with No Changes #2717

Open

Description

What happened?

When you create a serverlessrepository.CloudFormationStack the first execution of pulumi up works fine. Subsequent executions of pulumi up fail when there is no changes to the CFN Stack because it can't create a changeset.

Expected Behavior

The resource shouldn't be modified when there is no changes, or it shouldn't fail on changeset creations when there is no changes.

Steps to reproduce

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

  const mysqlRotator = new aws.serverlessrepository.CloudFormationStack("mysql-rotation-lambda", {
    applicationId: "arn:aws:serverlessrepo:us-east-1:297356227824:applications/SecretsManagerRDSMySQLRotationSingleUser",
    capabilities: [
      "CAPABILITY_IAM",
      "CAPABILITY_RESOURCE_POLICY",
    ],
    parameters: {
      endpoint: "https://secretsmanager.us-east-2.amazonaws.com",
      functionName: "mysql-rotation-lambda",
      invokingServicePrincipal: "secretsmanager.amazonaws.com",
    },
  });

Output of pulumi about

CLI          
Version      3.78.1
Go Version   go1.20.7
Go Compiler  gc

Plugins
NAME        VERSION
aws         5.42.0
aws         5.31.0
aws-native  0.73.0
awsx        1.0.2
docker      3.6.1
eks         1.0.2
github      5.15.0
kubernetes  3.30.2
nodejs      unknown

Host     
OS       darwin
Version  13.4
Arch     arm64

This project is written in nodejs: executable='/opt/homebrew/bin/node' version='v20.3.1'

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/FOO
User           FOO
Organizations FOO

Dependencies:
NAME                VERSION
@pulumi/aws         5.42.0
@pulumi/aws-native  0.73.0
@pulumi/awsx        1.0.2
@pulumi/eks         1.0.2
@pulumi/github      5.15.0
@pulumi/pulumi      3.76.1
@types/js-yaml      4.0.5
js-yaml             4.1.0
@types/node         16.18.39

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area/providersbug/diffkind/bug related to Pulumi generating wrong diffs on preview or up.impact/usabilitySomething that impacts users' ability to use the product easily and intuitivelykind/bugSome behavior is incorrect or out of spec

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions