Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
"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
You can’t perform that action at this time.