Web: https://www.reddit.com/r/aws/comments/rzabia/need_help_with_deploying_python_39_script_to_aws/

Jan. 8, 2022, 9:19 p.m. | /u/Single-Resort

Amazon Web Services (AWS): S3, EC2, SQS, RDS, DynamoDB, IAM, CloudFormation, Route 53, VPC and more reddit.com

Need Help With Deploying to AWS from Python 3.9

Hi everyone, pretty new to programing but I am struggling through it! Here is the code I am trying to deploy via Chalice in python 3.9:

import requests

import json

from chalice import Chalice

app = Chalice(app_name='tradingview-webhook-alerts')

API_KEY = 'Hidden for post'

SECRET_KEY = 'Hidden for post'

BASE_URL = "https://paper-api.alpaca.markets"

ORDERS_URL = "{}/v2/orders".format(BASE_URL)

HEADERS = {'APCA-API-KEY-ID': API_KEY, 'APCA-API-SECRET-KEY': SECRET_KEY}

'@app.route('/buy_stock', methods=['POST'])

def buy_stock():

request = app.current_request

webhook_message = request.json_body

data = {

"symbol": webhook_message['ticker'],

"qty": webhook_message['quantity'],

"side": "buy",

"type": …

authentication aws help python

DevOps Software Engineer

@ Sinch | Malmö, Skåne County, Sweden

Senior Staff Engineer, Cloud Systems

@ Life360 | Remote, USA

Junior DevOps Engineer

@ SmartBear | Wrocław, Lower Silesian Voivodeship, Poland

Senior DevOps Engineer - Data Engineering

@ Life360 | Ukraine

DevOps Engineer , Team Lead ( Remote )

@ AssistRx | Remote - Orlando, Florida, United States

Senior DevSecOps

@ Prodigy Education | Oakville, Ontario