Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
Brad Tillman
hello everyone, I'm running into a problem trying to lookup tags on an ec2 instance
I'm using the following code:
instance_data = JSON.parse(Net::HTTP.get(URI.parse('')))
region = instance_data['region']
instance_id = instance_data['instanceId']
    ec2 = 'us-east-1')
    instance = ec2.instance(instance_id)
    @tags ||= { |tag| { key: tag.key, value: tag.value } }
I'm getting the error:
unable to sign request without credentials set

the http debug output shows:
<- "GET /latest/meta-data/iam/security-credentials/ HTTP/1.1\r\nUser-Agent: aws-sdk-ruby3/3.89.1\r\nX-Aws-Ec2-Metadata-Token:

"HTTP/1.0 404 Not Found\r\n"
-> "Content-Length: 337\r\n"

when I test the same url on the instance it shows a profile with creds
Brad Tillman
turns out this issue is with Inspec. Running Inspec via winrm executes custom resources on the source machine.


I am trying to create a group, add a user to that group and give that group a policy. I have:

require 'aws-sdk-iam'
require 'aws-sdk-s3'
require 'json'
iam =
  access_key_id: 'key',
  secret_access_key: 'pass',
  endpoint: 'http://localhost:9000',
  ssl_verify_peer: false,
  region: 'us-east-1',
  http_wire_trace: true
g = iam.create_group({group_name: 'bob'})

This is using minio as the endpoint and I am getting:

Error parsing the Credential parameter; incorrect service. This endpoint belongs to "sts". (Aws::IAM::Errors::AuthorizationParametersError).

I have double-checked my credentials and they are good.

รย๒๒ค ςђ๏ฬ๔ђคгא ツ
I'm trying to do an external deployment in AWS ECS Fargate, and whenever our build runs successful it will create a new image of that in google cloud repository with the latest tag, and I'm using that in task definition so, I don't need to update my task definition to get the new image. I'm doing an external deployment vand my question is if I update the service will it use the new image ?
Gaurav Makwana
can i get access token for aws elastic search service??
Pramod Mallar
When I am trying to create_replication_group i am getiing unexpected value at params[:multi_az_enabled] (ArgumentError)from aws sdk
multi_az_enabled: true,
This is what I set, if I disable this my redis cluster with replicas are created
Pramod Mallar
what can be the reason, as I see this is the syntax provided in documentation?
Kurt Thams
this page says it is for the V1 version of the API. But the link to the v2 doesn't go to the Ruby SDK. Am I in the wrong place for the lates Ruby SDK?
Alfred Dominic
Hi all
in here.. how do i generate the policy hash?
in the example for java sdk. it uses a method like this :
String policy = CloudFrontService.buildPolicyForSignedUrl(
    // Resource path (optional, can include '*' and '?' wildcards)
    // DateLessThan
    // CIDR IP address restriction (optional, means everyone)
    // DateGreaterThan (optional)
do we have something similar for the ruby aws-sdk
Ubayde Roham

Hello Guys,

Anyone implemented the new Aws::SESV2::Client on rails?

Dieu Linh Nguyen
anyone has experience using rails 6 with action mailbox, I am trying to using it but it seems not work, in production, i config config.action_mailbox.ingress = :amazon, but I go to HOST_NAME/rails/action_mailbox/amazon/inbound_emails it seems not work
Liz Fong-Jones
I seem to be having trouble using the s3 gem from within Chef, out of the blue.
I'm seeing ArgumentError: unexpected value at params[:expires_in]
unfortunately, figuring out which gems I'm using at which versions, within Chef is a challenge.
I believe I'm using aws-sdk-s3-1.30.1 and either aws-sdk-core-3.44.2 or aws-sdk-core-3.104.1
Liz Fong-Jones
bisecting seems to reveal that a host that bootstrapped successfully was using aws-sdk-core-3.103.0 and aws-partitions-1.341.0 but that the failing host had aws-sdk-core-3.104.1 and aws-partitions-1.343.0
it's indeed a regression in aws-sdk-core-3.104.0
Quick question that I'm having issues dragging up answers for - Setting timeouts like http_idle_timeout - how can I do this for sub second performance? Say I wanted it to be like 500msec or so
how would I define that?
lord... Looking over this room it may be slim pickens on getting answers lol
..aight. Imma head out.
hello, where is signature-version-4 for php code demo?
Ben Chiciudean
how can I specify source_arn in rails for SES?
Fintan Moloney
So I got this error: NameError: uninitialized constant which StackOverflow says means that it is unintentionally upgrading, but that cannot be, because my version is the highest: AWSgem "aws-sdk-s3", require: false
Ragoth Varma
An error occurred (ResourceConflictException) when calling the CreateFunction operation: Function already exist: sentiment_analysis
I'm getting this error
I am in need of using custom attributes to be passed on for a Multi-Model custom endpoint
I see that the headers request for the type of example of MMS I tried, it take custom attributes, but not clear how to get the value of headers
you can email me appreciate. Thanks
kathy Gao
if i have the aws:arn:region:accoountid:key/xxx
how to access the bucket ?
i tried couple times, always got Aws::KMS::Errors::AccessDeniedException
hey guys... anyone know why wait_until method is undefined ?