Git Product home page Git Product logo

aws-forecast's Issues

boto3_session seems to error, possibly because Okta SSO or new aws cli version.

Running AWS SSO managed through Okta to get credentials and adding them to .aws/credentials file and manually running get_forecast.py with appropriate flags produces the following errors. Lambda is expected.

$ python3 get_forecast.py --profile redacted_AWSAdministratorAccess --type FORECAST
INFO:root:Not running as lambda
ERROR:root:Cannot connect to boto3
ERROR:root:Cannot connect to Cost Explorer with boto3

Will look into some sort of SSO or possible aws version issue but if any ideas would be helpful.

Re-create:

  1. Login to SSO to get new credentials
  2. Add new creds to ~/.aws/credentials files
  3. export new creds to ensure term session is up-to-date
  4. Run python3 get_forecast.py --profile redacted_AWSAdministratorAccess --type FORECAST

aws --version
aws-cli/2.0.26 Python/3.7.4 Darwin/19.6.0 botocore/2.0.0dev30

Add support for SNS in addition to Slack

User Story
Client does not use Slack but would like to integrate with SNS so that they can get daily alerts.

Acceptance Criteria

  1. Support integration with SNS
  2. Enable with optional command line param
  3. Configurable with ENV variable on the Lambda

error creating lambda outside us-east-1

After that i am trying to create the lambda function by using the cloud formation template by using the provided template from the git repo https://github.com/jimzucker/aws-forecast/blob/main/get_forecast_cf.yaml

While creating the cloud formation stack by using the template i am getting the following error:

getForecastLambda CREATE_FAILED

Resource handler returned message: "Error occurred while GetObject. S3 Error Code: PermanentRedirect. S3 Error Message: The bucket is in this region: us-east-1. Please use this region to retry the request (Service: Lambda, Status Code: 400, Request ID: 93a27aa3-519f-4fc8-aff0-7431f1588832, Extended Request ID: null)" (RequestToken: 0b4cf6b3-9ff5-97e4-4a25-639d3784676b, HandlerErrorCode: InvalidRequest)

As per my understanding the Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account. I am trying to create this lambda function from us-west-2 region and I hope the https://s3.amazonaws.com/jimzucker-github-getforecast/get_forecast.zip is hosted in us-east-1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.