serverless-api-stage icon indicating copy to clipboard operation
serverless-api-stage copied to clipboard

Role issues

Open hamecodedVia opened this issue 6 years ago • 2 comments

I mainly installed the plugin to set stage variables, logging is a bonus in my case, however it seems to fail the deployment. An error occurred: LogStack - Embedded stack arn:aws:cloudformation:us-east-xxx was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to create: [IamRoleApiGatewayCloudwatchLogRole].

Using only:

custom:
  stageSettings:
    Variables:
      vpcLinkId:123

hamecodedVia avatar Jun 24 '18 10:06 hamecodedVia

Hi... are there other resources that are conflicting? Did you try deleting the stack manually and then redeploying? Any logs you can provide?

leftclickben avatar Jul 04 '18 16:07 leftclickben

@hamecodedVia if you are only planning on dealing with stage variables using exclusively https://github.com/svdgraaf/serverless-plugin-stage-variables may fit your use-case. The README isn't very detailed, but actually the plugin gives you a lot of access to staging variables. For example, with the plugin enabled you can access the staging properties through 'resources'

resources:
  Resources:
    ApiGatewayStage:
      Properties:
        CacheClusterEnabled: true
        CacheClusterSize: '0.5'
        MethodSettings:
          - CacheTtlInSeconds: 5
            CachingEnabled: true
            HttpMethod: "GET"
            ResourcePath: '/*'
            MetricsEnabled: false

etgrieco avatar Jul 05 '18 16:07 etgrieco