Skip to content

removing CloudWatchLambdaInsightsExecutionRolePolicy causes an error #2887

@aprilmintacpineda

Description

@aprilmintacpineda

Description:

All I did was remove CloudWatchLambdaInsightsExecutionRolePolicy When I tried to deploy, I got this:

Waiting for changeset to be created..
Error: Failed to create changeset for the stack: myapp-dev, ex: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state: For expression "Status" we matched expected path: "FAILED" Status: FAILED. Reason: Template error: every Fn::Join object requires two parameters, (1) a string delimiter and (2) a list of strings to be joined or a function that returns a list of strings (such as Fn::GetAZs) to be joined.

I did not change anything related to Fn::Join or !Join, simply removed CloudWatchLambdaInsightsExecutionRolePolicy from all my functions. Deployment was successful prior to this change, and the error message is not specific.

Steps to reproduce:

  1. Create 10 functions with CloudWatchLambdaInsightsExecutionRolePolicy and make some of them have LambdaInvokePolicy.
  2. Deploy.
  3. Remove CloudWatchLambdaInsightsExecutionRolePolicy
  4. Deploy.

Observed result:

It results in a vague error.

Expected result:

Should not even cause an error -- also the error message should be more specific.

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Linux, using Github Actions
  2. sam --version: SAM CLI, version 1.23.0
  3. AWS region: ap-southeast-1

Add --debug flag to command you are running

N/A

EDIT 1:

Adding --debug does not help

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions