For support requests please search or create posts on Serverless Forum: https://forum.serverless.com
carlosandrebp on master
upload email icon (compare)
carlosandrebp on master
Icons update (compare)
carlosandrebp on master
updates animations (compare)
andrepiresbp on master
Updates (compare)
andrepiresbp on master
Update (compare)
service: sumo-admin
frameworkVersion: '3'
custom:
tableName: 'users-table-${self:provider.stage}'
sumoTableName: 'sumo-table-${self:provider.stage}'
wsgi:
app: app.app
provider:
name: aws
runtime: python3.8
stage: dev
region: us-west-2
ecr:
images:
app:
path: ./
iam:
role:
statements:
- Effect: Allow
Action:
- dynamodb:Query
- dynamodb:Scan
- dynamodb:GetItem
- dynamodb:PutItem
- dynamodb:UpdateItem
- dynamodb:DeleteItem
Resource:
- Fn::GetAtt: [ UsersTable, Arn ]
- Effect: Allow
Action:
- ssm:*
Resource:
- "*"
environment:
USERS_TABLE: ${self:custom.tableName}
SUMO_TABLE: ${self:custom.sumoTableName}
functions:
api:
image:
name: app
handler: wsgi_handler.handler
events:
- httpApi: '*'
environment:
SUMO_ACCESS_ID: ${ssm:/sumologic/sumoservice.access.key.id}
SUMO_ACCESS_KEY: ${ssm:/sumologic/sumoservice.access.key.secret}
plugins:
- serverless-wsgi
- serverless-python-requirements
- serverless-dotenv-plugin
resources:
Resources:
UsersTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
- AttributeName: userId
AttributeType: S
KeySchema:
- AttributeName: userId
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
TableName: ${self:custom.tableName}
SumoTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
- AttributeName: service_name
AttributeType: S
KeySchema:
- AttributeName: service_name
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
TableName: ${self:custom.sumoTableName}
DEBUG ─ Updating CloudFront distribution of ID XXXXXXXXX.
error:
Error [UriParameterError]: Expected uri parameter to have length >= 1, but found "" for params.Bucket
name: FE
nextApp:
component: "@sls-next/serverless-component@3.7.0"
inputs:
build:
env:
BASE_FE_URL: "https://stage.xxxxxxxxxxxxxx.com"
memory: 1024
bucketName: "XXXXXXXXXXXXX-XXXXXXXXXXX-app"
bucketRegion: "us-west-2"
cloudfront:
distributionId: XXXXXXXXXX
aliases: ["stage.xxxxxxxxxxxxxx.com"]
defaults:
forward:
cookies: ["Auth"]
headers: ["Authorization"]
_next/data/*:
forward:
cookies: ["Auth"]
headers: ["Authorization"]
_next/image*:
forward:
cookies: ["Auth"]
headers: ["Authorization"]
_next/static/*:
forward:
cookies: ["Auth"]
headers: ["Authorization"]
static/*:
forward:
cookies: ["Auth"]
headers: ["Authorization"]
origins:
- url: https://xxxxxxxxxxxxxxxxxx.us-west-2.elb.amazonaws.com
protocolPolicy: https-only
pathPatterns:
sam/admin/*:
minTTL: 0
maxTTL: 86400
defaultTTL: 60
allowedHttpMethods:
["GET", "HEAD", "OPTIONS", "PUT", "POST", "PATCH", "DELETE"]
forward: # optional
headers: ["Host", "Referer"]
cookies: "all"
queryString: true
scm/admin/*:
minTTL: 0
maxTTL: 86400
defaultTTL: 60
allowedHttpMethods:
["GET", "HEAD", "OPTIONS", "PUT", "POST", "PATCH", "DELETE"]
forward: # optional
headers: ["Host"]
cookies: "all"
queryString: true
- url: https://xxxxxxxxxxxxxxxxxx.us-west-2.elb.amazonaws.com
protocolPolicy: https-only
pathPatterns:
sam/*:
minTTL: 0
maxTTL: 86400
defaultTTL: 60
allowedHttpMethods:
["GET", "HEAD", "OPTIONS", "PUT", "POST", "PATCH", "DELETE"]
forward: # optional
headers: ["Host", "Referer"]
cookies: "all"
queryString: true
scm/*:
minTTL: 0
maxTTL: 86400
defaultTTL: 60
allowedHttpMethods:
["GET", "HEAD", "OPTIONS", "PUT", "POST", "PATCH", "DELETE"]
forward: # optional
headers: ["Host", "Referer"]
cookies: "all"
queryString: true
- url: https://xxxxxxxxxxxxxx.lambda-url.us-west-2.on.aws
protocolPolicy: https-only
pathPatterns:
facade/*:
minTTL: 0
maxTTL: 86400
defaultTTL: 60
allowedHttpMethods:
["GET", "HEAD", "OPTIONS", "PUT", "POST", "PATCH", "DELETE"]
forward: # optional
headers: "none"
cookies: "all"
queryString: true
Hi everyone,
I'm having a Circular dependency problem, and since yesterday, I searched through all the forum/gitter history, and I couldn't find anything that could help me. The error is:
The CloudFormation template is invalid: Circular dependency between resources: [12NestedStack, 1NestedStack, 11NestedStack, ApiGatewayResourceOfferingOfferingidVarRequirement, 19NestedStack, 2NestedStack, 10NestedStack, 20NestedStack, 9NestedStack, ApiGatewayDeployment1667571081871, 14NestedStack, 4NestedStack, ApiGatewayResourceOfferingOfferingidVarRequirementRequirementidVar]
I've tried changing the URIs, nothing worked.
Mounting Server Folder - Accessing files through application server
I have 4 linux machines where applications runs on 3 and 1 linux file server where i have stored files.
#4 has folder images and it has been mounted on all the application servers 1, 2, 3 as /images
assume common domain name configured: www.imageprocessing.com and internally routed with load balancing
to hit any of the application server
Please advise whether it works or how it works...Basically to serve/give a direct URL for the protected images for each users and different companies who uses same website/application...