Skip to content

Commit

Permalink
Fix domain manager madness with http api issue. See my comment here: a…
Browse files Browse the repository at this point in the history
  • Loading branch information
akfreas committed Nov 6, 2023
1 parent 522f579 commit 82f1c44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tangential/scripts/deploy.py
Expand Up @@ -16,7 +16,7 @@

cloudformation = session.client('cloudformation')

def deploy_stage(stage, skip_message_upload):
def deploy_stage(stage):

os.environ.update({'NO_MINIFY_JS': 'true'})
deploy_handle = subprocess.Popen('node --max-old-space-size=8192 ./node_modules/serverless/bin/serverless.js deploy --stage %s' % stage, cwd="../", shell=True)
Expand All @@ -32,4 +32,4 @@ def deploy_stage(stage, skip_message_upload):
parser.add_argument('--stage', help='Deploy stage', required=True)
args = parser.parse_args()

deploy_stage(args.stage, args.skip_message_upload)
deploy_stage(args.stage)
8 changes: 5 additions & 3 deletions tangential/serverless.yml
Expand Up @@ -5,8 +5,9 @@ plugins:
- serverless-offline
- serverless-plugin-typescript
- serverless-dotenv-plugin
# - serverless-domain-manager
- serverless-domain-manager
- "@akfreas/serverless-offline-sqs"

useDotenv: true

provider:
Expand All @@ -32,6 +33,7 @@ provider:
allowCredentials: false

custom:

projectAnalysisQueueUrl:
offline: ${self:custom.serverless-offline-sqs.endpoint}/queue/ProjectAnalysisQueue-${self:provider.stage}
remote:
Expand All @@ -48,14 +50,14 @@ custom:
certificateArn: arn:aws:acm:us-east-1:556167323904:certificate/ba19fbb2-0c34-4cd6-984a-0c5562fd6e9d
endpointType: regional
hostedZoneId: Z091731134YSQCRRMM86I
autoDomain: true
apiType: http
autoDomain: true

functions:
startWorkspaceAnalysis:
handler: src/functions/startWorkspaceAnalysis.handler
events:
- http:
- httpApi:
method: get
path: /workspace/analyze

Expand Down

0 comments on commit 82f1c44

Please sign in to comment.