How can I combine AWS EC2 describe-instances with describe-image?

Issue I have 2 API calls, the second uses AMI-ID from the first aws ec2 describe-instances \ –query "Reservations[*].{ \ OWNERID:OwnerId, \ IP:Instances[0].PublicIpAddress, \ ImageID:Instances[0].ImageId, \ AZ:Instances[0].Placement.AvailabilityZone, \ STATE:Instances[0].State.Name, \ KEY:Instances[0].KeyName, \ VPC:Instances[0].VpcId, \ ID:Instances[0].InstanceId, \ INSTANCETYPE:Instances[0].InstanceType \ }" –output

Continue reading

NGNIX redirect_uri with AWS Cognito

Issue I have a service(Apache Superset) running on localhost:8088. I am trying to connect to AWS Cognito using NGINX as a webserver. My NGINX config is /etc/ngnix/conf.d/superset.conf server { listen 80; server_name in.welcome.com; return 301 https://$host$request_uri; } server { server_name

Continue reading

Issue with Cognito API using Angular HttpClient and HttpHeader

Issue I’m currently having trouble with HttpClient vs Axios when I use this code const requestBody = { grant_type: ‘refresh_token’, client_id: environment.APP_COGNITO_CLIENT_ID, refresh_token: this.storage.get("auth").refresh_token, }; const params = { baseURL: "https://testing.auth.eu-west-2.amazoncognito.com", url: ‘/oauth2/token’, method: ‘post’, headers: { ‘Content-Type’: ‘application/x-www-form-urlencoded’, },

Continue reading

Reading AWS Param Store from Lambda

Issue First foray into AWS’s Lambda@Edge and trying to retrieve secrets from AWS Param Store for authentication (following this article) but getting nothing back. Here’s the function that calls the AWS.SSM function: const fromParameterStore = async(key, withDecryption = false) =>

Continue reading

UnknownEndpoint: Inaccessible host: `localhost'. When trying to connect to localhost with express and dynamodb local

Issue I am using docker compose to create two containers one for dynamodb local and one for nodejs express app. docker-compose.dev.yml version: ‘3’ services: dynamodb-local: command: "-jar DynamoDBLocal.jar -sharedDb -optimizeDbBeforeStartup -dbPath ./data" image: "amazon/dynamodb-local:latest" container_name: dynamodb-local ports: – "8000:8000" volumes:

Continue reading

UnknownEndpoint: Inaccessible host: `localhost'. When trying to connect to localhost with express and dynamodb local

Issue I am using docker compose to create two containers one for dynamodb local and one for nodejs express app. docker-compose.dev.yml version: ‘3’ services: dynamodb-local: command: "-jar DynamoDBLocal.jar -sharedDb -optimizeDbBeforeStartup -dbPath ./data" image: "amazon/dynamodb-local:latest" container_name: dynamodb-local ports: – "8000:8000" volumes:

Continue reading

AWS Lambda HTTP POST Request (Node.js)

Issue I’m relatively new to AWS lambda function and nodejs. I’m working on to try and get the list of 5 cities in a country by using HTTP POST request from this website: “http://www.webservicex.net/globalweather.asmx?op=GetCitiesByCountry“ I’ve been searching about how to

Continue reading