Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Last active August 17, 2019 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/ed219bf811a7469f54bfb5bbb638e403 to your computer and use it in GitHub Desktop.
Save uno-de-piera/ed219bf811a7469f54bfb5bbb638e403 to your computer and use it in GitHub Desktop.
"Resources": {
"LambdaFunction": {
"Type": "AWS::Lambda::Function",
"Metadata": {
"aws:asset:path": "./src",
"aws:asset:property": "Code"
},
"Properties": {
"Handler": "index.handler",
"FunctionName": {
"Fn::If": [
"ShouldNotCreateEnvResources",
"sendEmailToNewUser",
{
"Fn::Join": [
"",
[
"sendEmailToNewUser",
"-",
{
"Ref": "env"
}
]
]
}
]
},
"Environment": {
"Variables": {
"ENV": {
"Ref": "env"
},
"REGION": {
"Ref": "AWS::Region"
},
"EMAIL_SERVER": "server",
"EMAIL_USER": "user",
"EMAIL_PASSWORD": "email",
"EMAIL_PORT": "port"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment