amazon-web-services

How to get data for the past x weeks for each type?

落爺英雄遲暮 提交于 2021-02-11 12:54:49
问题 I have below query which gives me data with three columns - type , amount and total for previous week using week_number column. select type, case WHEN (type = 'PROC1' AND contractdomicilecode = 'UIT') THEN 450 WHEN (type = 'PROC1' AND contractdomicilecode = 'KJH') THEN 900 WHEN (type = 'PROC2' AND contractdomicilecode = 'LOP') THEN 8840 WHEN (type = 'PROC2' AND contractdomicilecode = 'AWE') THEN 1490 WHEN (type = 'PROC3' AND contractdomicilecode = 'MNH') THEN 1600 WHEN (type = 'PROC3' AND

How would you fork an AWS CodeCommit repo to another CodeCommit repo?

我只是一个虾纸丫 提交于 2021-02-11 12:53:45
问题 In github there is a fork button to fork a repo into a new repo you control. According to are git forks actually git clones? a github fork is a clone on the server side. If you read the git-scm documentation it specifically says to click the fork button in Github. I assume because there is no fork button in AWS CodeCommit there is not similar functionality. So, is there a way to do this with the native git cli? 回答1: I don't think there is any option in AWS CodeCommit to fork. What you can do

AWS Cognito user able to sign in, but API “Does not exist” when using I can access using access token on console?

前提是你 提交于 2021-02-11 12:50:20
问题 Im a bit lost here and would love some help. I am trying to connect my React Native app to a basic Lambda function. I have no bother Registering a user, Confirming a user or Signing in. I can see all of these things in the Cognito Console. I also am able to test the access to the API with the Authorizers part of the API Gateway and get a Response Code: 200 with the correct email from cognito. Here is the code: async signIn(email: string, password: string) { try { //sign in the user const user

How to retrieve multiple images from Amazon s3 using one imagePath at once?

谁说胖子不能爱 提交于 2021-02-11 12:45:12
问题 I want to output every image inside the s3 bucket folder Business_Menu. Only way public async Task<(string url, Image image)> GetAWSPreSignedS3Url(entities.Cafe cafe, string mimeType, Constants.ImageType type) { AmazonS3Client s3Client = new AmazonS3Client(_appSettings.AWSPublicKey, _appSettings.AWSPrivateKey, Amazon.RegionEndpoint.APSoutheast2); string imagePath; string cafeName = trimSpecialCharacters(cafe.Name); var cafeId = cafe.CafeId; Image image; switch (type) { case Constants

RDS to S3 - Data Transformation AWS

半城伤御伤魂 提交于 2021-02-11 12:31:32
问题 I have about 30 tables in my RDS postgres / oracle (haven't decided if it is oracle or postgres yet) instance. I want to fetch all the records that have been inserted / updated in the last 4 hours (configurable) , create a csv file pertaining to each table and store the files in S3. I want this whole process to be transactional. If there is any error in fetching data from one table , I don't want data pertinent to other 29 tables to be persisted in S3. The data isn't very large , it should be

How to parse stepfunction executionId to SageMaker batch transform job name?

霸气de小男生 提交于 2021-02-11 12:29:35
问题 I have created a stepfunction, the definition for this statemachine below ( step-function.json ) is used in terraform (using the syntax in this page:https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTransformJob.html) The first time if I execute this statemachine, it will create a SageMaker batch transform job named example-jobname , but I need to exeucute this statemachine everyday, then it will give me error "error": "SageMaker.ResourceInUseException", "cause": "Job name

cloudfront is giving “your connection is not private” error

自作多情 提交于 2021-02-11 12:29:21
问题 I am trying to have to host on my s3 bucket which is attached to CloudFront distribution in the front. But I am getting this error when I access the CloudFront domain name I know the following error might be because of the SSL certificate. But I have the same SSL certificate attached to other distributions and that is working fine. I also check if the name c name matches, which I does. Could anyone help me out with this? 来源: https://stackoverflow.com/questions/65933833/cloudfront-is-giving

I would like migrate Oralce DB to Amazon Redshift with AWS SCT

懵懂的女人 提交于 2021-02-11 12:25:00
问题 Overview I learn to migrate an Amazon RDS for Oracle Database to Amazon Redshift referring this tutorial https://docs.aws.amazon.com/dms/latest/sbs/CHAP_RDSOracle2Redshift.html Trouble In step5, I use Amazon SCT to convert the Oracle Schema to Amazon Redshift. But, I have to change config for Amazon SCT because the tutorial document is old written in 2017. One of the change config, I try to disable to use AWS Glue. I open Project settings to uncheck the checkbox "Use AWS Glue". And soon after

Import Error Loading Module using Bash Script on EC2 Instance (AWS)

北战南征 提交于 2021-02-11 12:24:20
问题 I am trying to run a bash script through the user_data argument of the spot_fleet_request method. The script executes all the installations and connects to the filesystem, but when it runs the python file I need to run it gives me the following error: Traceback (most recent call last): File "/home/ec2-user/efs/dir/create_lvl_output.py", line 8, in <module> from modeling import generators ImportError: No module named modeling Where modeling is a folder with a script I am importing "modeling

How to create change set for CloudFormation Template with Transform AWS::CodeDeployBlueGreen

左心房为你撑大大i 提交于 2021-02-11 10:00:56
问题 CloudFormation is failing to create a change set with status reason Template parameters modified by transform . This appears to be in reference to the AWS::CodeDeployBlueGreen transform applied to my template: AWSTemplateFormatVersion: '2010-09-09' Description: Stack Transform: - 'AWS::CodeDeployBlueGreen' # DEPLOYMENT HOOK Hooks: CodeDeployBlueGreenHook: ... This template contains all the resources required to run my application, including an ECS service with a task set which uses Blue/Green