by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
nuheluxulu
@nuheluxulu
Is there a way to see a log of 'denied' permissions when executing a lambda function?
Brad Tillman
@guessmyname
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('http://169.254.169.254/latest/dynamic/instance-identity/document')))
region = instance_data['region']
instance_id = instance_data['instanceId']
    ec2 = Aws::EC2::Resource.new(region: 'us-east-1')
    instance = ec2.instance(instance_id)
    @tags ||= instance.tags.map { |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
@guessmyname
turns out this issue is with Inspec. Running Inspec via winrm executes custom resources on the source machine.
thatusernamenotavailable
@thatusernamenotavailable

Hi

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 = Aws::IAM::Client.new(
  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.

รย๒๒ค ςђ๏ฬ๔ђคгא ツ
@subbaparitala_twitter
Hi,
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
@Gauravbtc
can i get access token for aws elastic search service??
Pramod Mallar
@MallarPramod_twitter
Hi,
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
@MallarPramod_twitter
what can be the reason, as I see this is the syntax provided in documentation?
Kurt Thams
@thams_twitter
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? https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/KinesisAnalytics/Client.html
Alfred Dominic
@alfie-max
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)
    policyResourcePath, 
    // DateLessThan
    ServiceUtils.parseIso8601Date("2011-11-14T22:20:00.000Z"), 
    // CIDR IP address restriction (optional, 0.0.0.0/0 means everyone)
    "0.0.0.0/0", 
    // DateGreaterThan (optional)
    ServiceUtils.parseIso8601Date("2011-10-16T06:31:56.000Z")
    );
do we have something similar for the ruby aws-sdk
Ubayde Roham
@Ennov_Ubayde_gitlab

Hello Guys,

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

Dieu Linh Nguyen
@dieulinh
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
@lizthegrey
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
@lizthegrey
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
Justin
@ardoin_justin_twitter
Hello
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?
.5?
lord... Looking over this room it may be slim pickens on getting answers lol
Justin
@ardoin_justin_twitter
..aight. Imma head out.
tchengchatwin
@tchengchatwin
hello, where is signature-version-4 for php code demo?
Ben Chiciudean
@benydc
how can I specify source_arn in rails for SES?
Fintan Moloney
@Josebuendia
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
@Ragoth-Varma
An error occurred (ResourceConflictException) when calling the CreateFunction operation: Function already exist: sentiment_analysis
I'm getting this error
sridharr24
@sridharr24
Hi
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
sridharr24
@sridharr24
you can email me appreciate. Thanks
kathy Gao
@kathyygao
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