Questions tagged with Developer Tools
Content language: English
Sort by most recent
I just created an AWS account for the purpose of using AWS EC2 virtual machine at some point in the future.
However I don't need to use it yet (probably in the next 6-12 months). How can I pause the 12 month free-tier until I am ready to use EC2?
Thanks,
I am working on adding a new library that depends on AWS JDK to my project, however, some other untouched existing component querying DynamoDB throws the exception:
```
Caused by: com.amazonaws.services.dynamodbv2.model.AmazonDynamoDBException: User not found: the_user_key (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: UnrecognizedClientException; Request ID: null; Proxy: null)
```
`the_user_key` works well before I add the new library, but it suddenly says the user was not found.
I am using `com.amazonaws:aws-java-sdk-dynamodb:1.11.704`, `"com.amazonaws:aws-java-sdk-core:1.11.704"`, and there are also a bunch of `software.amazon.awssdk` with version 2.16.87.
I am wondering if anybody encountered similar issues before, or if anybody could give any advice.
Why is Fail2Ban completely missing from AL2023 repos? Are there instructions, including dependencies for hand installation on AL2023? Why would Amazon leave this standard component of basic hacker prevention and security out of the stack?
I am following the link:-
https://docs.snowflake.com/en/user-guide/admin-security-privatelink
This is to set up the private link between AWS and Snowflake.
The first command is aws sts get-federation-token --name sam
Here i am replacing the name Sam with Root user and executing in Cloudshell.
error occurred (AccessDenied) when calling the GetFederationToken operation: Cannot call GetFederationToken with session credentials
Not sure if it has to do with permissions. Please advise
Hello,
Im trying to setup DAX to handle caching for our DynamoDB logic for our existing kubernetes cluster.
However, when I follow the guides, they are incomplete.
From official doc here:
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DAX.create-cluster.console.create-subnet-group.html
1. Open the **DynamoDB **console at https://console.aws.amazon.com/dynamodb/.
2. In the navigation pane, under **DAX, choose Subnet groups.**
However there are NO such thing as "DAX" under DynamoDB. There is simply create table etc. When I search DAX in the console, I get no hits.
How exactly am I to understand how this is to be done when the official guide itself isnt correct?
Same with guides I've found, they simply do not align with how it looks in real life.
Help much appreciated since our Prod enviroment is in dire need of this ASAP.
Kind regards
Olle
Amazon VPC has support for multicast, as this page of the documentation explains: [https://docs.aws.amazon.com/vpc/latest/tgw/working-with-multicast.html ](https://docs.aws.amazon.com/vpc/latest/tgw/working-with-multicast.html)
AWS lambda can be connected to a VPC: [https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html](https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html)
Can AWS lambda send and/or receive multicast messages to/from a VPC?
I have installed AWS Toolkit in visual studio. I seem to have connected fine, as the panel on the left connects to my AWS account and displays proper AWS services. I then follow directions from here (https://docs.aws.amazon.com/toolkit-for-visual-studio/latest/user-guide/publish-experience.html). When i right click on my project, and select 'Publish to AWS', i get a message stating 'There are no compatible publish targets for this application'.
My project is .NET 6.0 Console Application targeting Windows 7.0. Ultimately what i am trying to do is have AWS host our website.

I am busy doing an implementation of Cognito and am wanting to use the aws-sdk for node.js. From the aws console I make my way to the node.js web app page and it takes me to the developer guide. Clicking on the CognitoIdentityClient hyperlink on the first page takes me to a "Looking for Something?" page because that link does not exist. That means that most of the developer guide is out of date. Some of the links to the API docs take me to the old API docs, some to the new. Once I finally find the "AWS SDK for JavaScript v3" I then click on @aws-sdk/cognito-identity which I have used before in this project. That takes me into a loop of the page endlessly reloading. The same happens with @aws-sdk/cognito-identity-provider. I eventually find @aws-sdk/credential-providers and that takes me to a completely different site (npmjs.com) for the docs for that. I guess my question is "How is a developer supposed to navigate the docs if the docs are not up to date and are not intuitive?".
Struggling to understand how to quickly and easily create real-time updates from backend services (step functions, eventbridge, etc). There are numerous good posts on creating out-of-band appsync updates using sam or cdk.
For example:
https://aws.amazon.com/blogs/mobile/appsync-eventbridge/
https://aws.amazon.com/premiumsupport/knowledge-center/appsync-notify-subscribers-real-time/
https://serverlessland.com/patterns/appsync-lambda-graphql
As for amplify, is it a matter of creating a custom resource and using cdk to override? Is there an easier way to integrate?
On my lightsail instance I have tried to use the bncert-tool to setup an SSL cert, but it fails on the final part which is enabling auto-renewal. I got it working by manually renewing it https://aws.amazon.com/premiumsupport/knowledge-center/lightsail-bitnami-renew-ssl-certificate/ (It kept renewing successfully but would not show on the website, except for the first time, which I have no idea why?
```
2023/03/16 22:59:39 [INFO] [MYDOMAIN] acme: Trying renewal with 2158 hours remaining
2023/03/16 22:59:39 [INFO] [MYDOMAIN] acme: Obtaining bundled SAN certificate
2023/03/16 22:59:39 [INFO] [MYDOMAIN] AuthURL: https://acme-v02.api.letsencrypt.org
/acme/authz-v3/
2023/03/16 22:59:39 [INFO] [MYDOMAIN] acme: authorization already valid; skipping c
hallenge
2023/03/16 22:59:39 [INFO] [MYDOMAIN] acme: Validations succeeded; requesting certi
ficates
2023/03/16 22:59:40 [INFO] [MYDOMAIN] Server responded with a certificate.
```
And now I've reached the limit of 5 certs) but then I tried to use bncert again and now no method is working. But regardless I would like to get the automatic method working if possible.
```
Domain MYDOMAIN did not pass HTTP challenge validation
```
https://docs.bitnami.com/google/how-to/understand-bncert/#certificates-not-renewed-automatically
This page lists a solution but I still can't manage to get it working. I'm not sure if I have set the flags in the correct place?
```
RewriteCond %{REQUEST_URI} !^/\.well-known
```
```
ProxyPass /.well-known !
```
I placed them in my virtual host files
myapp-https-vhost.conf
```
<VirtualHost _default_:443>
RewriteCond %{REQUEST_URI} !^/\.well-known
ServerAlias *
SSLEngine on
SSLCertificateFile "/opt/bitnami/apache/conf/MYDOMAIN.crt"
SSLCertificateKeyFile "/opt/bitnami/apache/conf/MYDOMAIN.key"
DocumentRoot "/home/bitnami/htdocs/staging-api"
<Directory "/home/bitnami/htdocs/staging-api">
Require all granted
</Directory>
ProxyPass /.well-known !
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
</VirtualHost>
```
myapp-http-vhost.conf
```
<VirtualHost _default_:80>
RewriteCond %{REQUEST_URI} !^/\.well-known
ServerAlias *
DocumentRoot "/home/bitnami/htdocs/staging-api"
<Directory "/home/bitnami/htdocs/staging-api">
Require all granted
</Directory>
ProxyPass /.well-known !
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
</VirtualHost>
```
I also placed it in the public/.htaccess file because someone suggested it should go there.
```
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]
RewriteCond %{REQUEST_URI} !^/\.well-known
```
Not really sure where these flags are meant to go
`
I'm working to validate my device with Greengrass v2 on a Windows 2019 OS.
When executing the devicetester_win_x86-64.exe it launches a pretest validation check to make sure the correct components are installed on Windows. Below is the messages I'm seeing when this happens.
info msg="GGV2 Suite Info" hostArch=amd64 hostName=WIN-JTAA71LE6U1 hostOs=windows testCaseId=pretestvalidation deviceId=ztC-200i groupId=pretestvalidation
info msg="Running test case"
info msg="Setting up device for testing"
info msg="Running preTest validation test"
error msg="Encountered failure running pretest validation - \n your device doesn't have Visual C++ 2017 or later versions installed"
The last message tells me that it can not validate that Visual C++ 2017 Redistributable has been installed.
I have installed this on my machine and validated that it exists in add remove programs. Microsoft Visual C++ 2015-2022 Redistributable.
How is the pretestvalidation tool verifying that it's installed on the machine?
I checked the Registry and it looks correct.
Is it possible that the latest version of the Redistributable does not work with this pretestvalidation tool?
Anyone have any suggestions?
Thanks
-Peter
I want to create an API Gateway, that uses HTTP protocol, in my private VPC so that only the services inside this VPC can hit this API Gateway. There is an [article](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-private-apis.html) on creating private API for API Gateway but it is only for REST APIs. Also, while creating the API Gateway for HTTP, I could not find the VPC configuration option. Is it possible to create a private API Gateway for HTTP?