UNPKG

awsm-npm-registry

Version:
64 lines (63 loc) 1.52 kB
{ "name": "awsm-npm-registry", "version": "0.0.1", "location": "https://github.com/inbot/awsm-npm-registry", "author": "Joona Kulmala <jmkulmala@gmail.com>", "description": "Simple serverless NPM registry", "resources": { "cloudFormation": { "LambdaIamPolicyDocumentStatements": [ { "Effect": "Allow", "Action": [ "s3:GetObject", "s3:PutObject", "s3:PutObjectAcl" ], "Resource": [ { "Fn::Join": [ "", [ "arn:aws:s3:::", { "Ref": "aaStage" }, ".registry.", { "Ref": "aaProjectDomain" }, "/*" ] ] } ] } ], "ApiGatewayIamPolicyDocumentStatements": [], "Resources": { "RegistryS3Bucket": { "Type": "AWS::S3::Bucket", "DeletionPolicy": "Retain", "Properties": { "AccessControl": "PublicRead", "BucketName": { "Fn::Join": [ ".", [ { "Ref": "aaStage" }, "registry", { "Ref": "aaProjectDomain" } ] ] } } } } } } }