Hello,
I have my lambda’s in a VPC and originally this created ENI’s (I think). I manually deleted them as CloudFormation was taking a long time to detach them (this is in dev), however when I did sls deploy
again, it did not re-establish ENI’s. Everything deployed fine, just no ENI’s attached to any of the lambdas.
Any ideas on why this could be or if there’s a different method to re-establish them?
This is my config, minus function details.
provider:
name: aws
runtime: nodejs8.10
timeout: 6
stage: dev
region: us-east-1
excludeDevDependencies: true
package:
exclude:
- .gitignore
- .git/**
- test/**
vpc:
securityGroupIds:
- sg-0af1fa1fca5dcbbc6
subnetIds:
- subnet-0379e30cee9iad8a0
- subnet-0551484ca7364aedn
iamRoleStatements:
- Effect: 'Allow'
Action:
- 'lambda:InvokeFunction'
Resource: '*'
- Effect: 'Allow'
Action:
- 'cognito-identity:*'
- 'cognito-idp:Admin*'
Resource: '*'
resources:
Resources:
UploadBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: mtestbucket
AccessControl: PublicRead
CorsConfiguration:
CorsRules:
- AllowedMethods:
- GET
- PUT
- POST
- HEAD
AllowedOrigins:
- '*'
AllowedHeaders:
- '*'
Thank you