mirror of
https://github.com/serverless/serverless.git
synced 2026-02-01 16:07:28 +00:00
readme:updates
This commit is contained in:
parent
876f04131d
commit
192260a530
@ -1,239 +0,0 @@
|
||||
{
|
||||
"AWSTemplateFormatVersion": "2010-09-09",
|
||||
"Description": "jawscf12 resources",
|
||||
"Parameters": {
|
||||
"aaProjectName": {
|
||||
"Type": "String",
|
||||
"Default": "jawscf12",
|
||||
"AllowedValues": [
|
||||
"jawscf12"
|
||||
]
|
||||
},
|
||||
"aaStage": {
|
||||
"Type": "String",
|
||||
"Default": "dev"
|
||||
},
|
||||
"aaDataModelPrefix": {
|
||||
"Type": "String",
|
||||
"Default": "dev"
|
||||
},
|
||||
"aaHostedZoneName": {
|
||||
"Type": "String",
|
||||
"Default": "myjawsproject.com"
|
||||
},
|
||||
"aaNotficationEmail": {
|
||||
"Type": "String",
|
||||
"Default": "ac@gmail.com"
|
||||
},
|
||||
"aaDefaultDynamoRWThroughput": {
|
||||
"Type": "String",
|
||||
"Default": "1"
|
||||
}
|
||||
},
|
||||
"Resources": {
|
||||
"IamRoleLambda": {
|
||||
"Type": "AWS::IAM::Role",
|
||||
"Properties": {
|
||||
"AssumeRolePolicyDocument": {
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Principal": {
|
||||
"Service": [
|
||||
"lambda.amazonaws.com"
|
||||
]
|
||||
},
|
||||
"Action": [
|
||||
"sts:AssumeRole"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"Path": "/"
|
||||
}
|
||||
},
|
||||
"IamRoleApiGateway": {
|
||||
"Type": "AWS::IAM::Role",
|
||||
"Properties": {
|
||||
"AssumeRolePolicyDocument": {
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Principal": {
|
||||
"Service": [
|
||||
"apigateway.amazonaws.com"
|
||||
]
|
||||
},
|
||||
"Action": [
|
||||
"sts:AssumeRole"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"Path": "/"
|
||||
}
|
||||
},
|
||||
"IamInstanceProfileLambda": {
|
||||
"Type": "AWS::IAM::InstanceProfile",
|
||||
"Properties": {
|
||||
"Path": "/",
|
||||
"Roles": [
|
||||
{
|
||||
"Ref": "IamRoleLambda"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"IamInstanceProfileApiGateway": {
|
||||
"Type": "AWS::IAM::InstanceProfile",
|
||||
"Properties": {
|
||||
"Path": "/",
|
||||
"Roles": [
|
||||
{
|
||||
"Ref": "IamRoleApiGateway"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"IamGroupLambda": {
|
||||
"Type": "AWS::IAM::Group",
|
||||
"Properties": {
|
||||
"Path": "/"
|
||||
}
|
||||
},
|
||||
"IamGroupApiGateway": {
|
||||
"Type": "AWS::IAM::Group",
|
||||
"Properties": {
|
||||
"Path": "/"
|
||||
}
|
||||
},
|
||||
"IamPolicyLambda": {
|
||||
"Type": "AWS::IAM::Policy",
|
||||
"Properties": {
|
||||
"PolicyName": {
|
||||
"Fn::Join": [
|
||||
"_-_",
|
||||
[
|
||||
{
|
||||
"Ref": "aaStage"
|
||||
},
|
||||
{
|
||||
"Ref": "aaProjectName"
|
||||
},
|
||||
"lambda"
|
||||
]
|
||||
]
|
||||
},
|
||||
"PolicyDocument": {
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"logs:CreateLogGroup",
|
||||
"logs:CreateLogStream",
|
||||
"logs:PutLogEvents"
|
||||
],
|
||||
"Resource": {
|
||||
"Fn::Join": [
|
||||
":",
|
||||
[
|
||||
"arn:aws:logs",
|
||||
{
|
||||
"Ref": "AWS::Region"
|
||||
},
|
||||
"*:*"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"Roles": [
|
||||
{
|
||||
"Ref": "IamRoleLambda"
|
||||
}
|
||||
],
|
||||
"Groups": [
|
||||
{
|
||||
"Ref": "IamGroupLambda"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"IamPolicyApiGateway": {
|
||||
"Type": "AWS::IAM::Policy",
|
||||
"Properties": {
|
||||
"PolicyName": {
|
||||
"Fn::Join": [
|
||||
"_-_",
|
||||
[
|
||||
{
|
||||
"Ref": "aaStage"
|
||||
},
|
||||
{
|
||||
"Ref": "aaProjectName"
|
||||
},
|
||||
"api-gateway"
|
||||
]
|
||||
]
|
||||
},
|
||||
"PolicyDocument": {
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"lambda:InvokeFunction"
|
||||
],
|
||||
"Resource": {
|
||||
"Fn::Join": [
|
||||
":",
|
||||
[
|
||||
"arn:aws:lambda",
|
||||
{
|
||||
"Ref": "AWS::Region"
|
||||
},
|
||||
"*:*"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"Roles": [
|
||||
{
|
||||
"Ref": "IamRoleApiGateway"
|
||||
}
|
||||
],
|
||||
"Groups": [
|
||||
{
|
||||
"Ref": "IamGroupApiGateway"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"Outputs": {
|
||||
"IamRoleArnLambda": {
|
||||
"Description": "ARN of the lambda IAM role",
|
||||
"Value": {
|
||||
"Fn::GetAtt": [
|
||||
"IamRoleLambda",
|
||||
"Arn"
|
||||
]
|
||||
}
|
||||
},
|
||||
"IamRoleArnApiGateway": {
|
||||
"Description": "ARN of the api gateway IAM role",
|
||||
"Value": {
|
||||
"Fn::GetAtt": [
|
||||
"IamRoleApiGateway",
|
||||
"Arn"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
{
|
||||
"name": "jawscf12",
|
||||
"version": "0.0.1",
|
||||
"location": "https://github.com/...",
|
||||
"author": "",
|
||||
"description": "",
|
||||
"stages": {
|
||||
"dev": [
|
||||
{
|
||||
"region": "us-east-1",
|
||||
"iamRoleArnLambda": "arn:aws:iam::149631484542:role/dev-jawscf12-r-IamRoleLambda-IFJ4KIF64ELI",
|
||||
"iamRoleArnApiGateway": "arn:aws:iam::149631484542:role/dev-jawscf12-r-IamRoleApiGateway-19AGUG3ID8TRV"
|
||||
}
|
||||
]
|
||||
},
|
||||
"jawsBuckets": {
|
||||
"us-east-1": "jawscf12"
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user