by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Luissette Figueroa
@lulz010
I'm looking for some guidance on how to unit test STS, specifically getFederationToken.
Luissette Figueroa
@lulz010
Is there a library that could be used to mock an STS client and test getFederationToken?
Tiago Cássio
@tiagocassio
@anubhav8421 i'm using the AWS Inspector service
i've created a issue for this problem: aws/aws-sdk-ruby#2216
Von Bailey
@vonbailey
So I'm trying to use the new Desktop tool on the DeviceFarm. Anyone had any success connecting to a device?
Specifically, what's used for the "device_arn" for the sessions?
Von Bailey
@vonbailey
Is anyone answering questions related to the device farm?
Dave
@DaveEOS
Am I the only one seeing something up with the docs navigation? Every click causes the Class List pane to reset to its Top Level Namespace. With docs this extensive, losing that context is pretty pane-ful. (Example: Expand S3 topic, choose Client, oops!)
Anubhav Jain
@anubhav8421
I can feel your pain. The organization of the docs could been implented in a better way.
The documentation is also not searchable through google. Had to dig up a lot to find the exsistance of inbuilt logger in Dynamodb client
Dave
@DaveEOS
So, I'm not the only one. Thanks. I have a meeting with several AWS engineers this evening. I'll raise docs as a pain point and barrier to adoption.
Viktor Fonic
@vfonic

Hey everyone! I'm trying to stub a file upload to S3, but I instantiate new AWS::S3::Resource for every file upload. What's the best practice to instantiate S3 Resource? Should this be a singleton?

Here's the code that I have:

s3 = ::Aws::S3::Resource.new
s3.bucket(ENV.fetch('AWS_S3_BUCKET_NAME')).put_object(acl: 'private', key: name, body: contents)
In my tests I can do:
s3 = Aws::S3::Client.new(stub_responses: true)
# or
s3 = ::Aws::S3::Resource.new(stub_responses: true)
But that doesn't help, because I'm not using these two instances.
I don't wan to add test code to the part of my production code:
s3 = if Rails.env.test?
       Aws::S3::Resource.new(stub_responses: true)
     else
       Aws::S3::Resource.new
     end
Eunchan Lee
@ckcks12
Hello, I'm trying to get credentials by AWS_WEB_IDENTITY_TOKEN_FILE. But I got this error
Not authorized to perform sts:AssumeRoleWithWebIdentity
I'm very newbie in Ruby area, so I couldn't narrow down about the error, but in golang sdk they seem not to call sts:AssumeRoleWithWebIdentity when setting up crendential via WEB TOKEN (OCID based)
for more detail, this is dockerized ruby app with aws-sdk-ecs v1.15.7 on kubernetes with service account providing irsa
Gareth Griffiths
@GriffG84_twitter

Hello,

I am having issues configuring an event notification to trigger a lambda function,

I remove all notifications in a before hook in my tests, then set the event back up after I have uploaded all my files to the bucket. (Code below )

Enable Event
@s3_client.put_bucket_notification_configuration( bucket: S3_BUCKET_NAME, notification_configuration: { lambda_function_configurations: [ { id: "Unique Name", lambda_function_arn: LAMBDA_ARN, events: ["s3:ObjectCreated:*"], filter: { key: { filter_rules: [ { name: "prefix", value: "#{prefix}" }, { name: "suffix", value: "#{suffix}" } ] } } } ] } )
Disable Event
@s3_client.put_bucket_notification_configuration( bucket: S3_BUCKET_NAME, notification_configuration: {} )

This Disables and enables the notification however it doesn't seem to fire off when the event is set up. It sometimes processes some files but is really flakey. Have I missed something ?

When I query the event, it shows as active but doesn't do what is is supposed to do ?

jeffalexs
@jeffalexs
Hi, there need help here
with cognito, integration on RoR
Trying to do a AWS Cognito Authentication with Multiple Devices???
jeffalexs
@jeffalexs
Basically what I need is to see, if the user is already authenticated and pass the same token
How do we know if the user is already authenticated, The aws-sdk-ruby had some kind of method to know that?
Eric Lackore
@elackoreopscompass
Is there a limit to the quantity of rooms a single AWS admin account can create via the SDK
NoorulainK
@Annie_Khaliq_twitter
how to do i stub list_object_versions?
NoorulainK
@Annie_Khaliq_twitter
    resp = client.list_object_versions({
      bucket: "xxx",
      prefix: image_key
    }).to_h
response shows this:
resp = client.list_object_versions({
  bucket: "BucketName", # required
  delimiter: "Delimiter",
  encoding_type: "url", # accepts url
  key_marker: "KeyMarker",
  max_keys: 1,
  prefix: "Prefix",
  version_id_marker: "VersionIdMarker",
  use_accelerate_endpoint: false,
})
Fernando Baz
@bazfer
Hello! We're having some issues with getting CodeBuild to fetch the ENV variables for our S3 buckets, specifically getting Aws::Sigv4::Errors::MissingCredentialsError errors. The Rails proj is loading them correctly locally in two different machines, but when we deploy to our staging environment, it fails. The env vars are correctly set in the CodeBuild settings and we have also tried exposing them via Aws.config.update with no luck. We are using Shrine as our uploader library. Any pointers are greatly appreciated!
Fernando Baz
@bazfer
(hardcoding the keys works! still we are dumbfounded as to why the SDK is not retrieving the env vars from the CodeBuild settings)
Tatum
@tatums

Hello! I'm getting odd results when trying to upload and hoping ya'll can help. Notice the etag is nil. When successful I notice it's present. Any idea what would cause this?

I'm using v3 of the sdk

obj = Aws::S3::Resource.new(region: 'us-east-1').bucket("test.scholastica").object("article/1/1-bats-are-interesting.xml")
=> #<Aws::S3::Object:0x000055ebd5f68a58 @bucket_name="test.scholastica", @key="article/1/1-bats-are-interesting.xml", @data=nil, @client=#<Aws::S3::Client>, @waiter_block_warned=false>

obj.put({body: "testing"})
=> #<#<Class:0x000055ebcf6a6948>:Aws::S3::Types::PutObjectOutput:0x55ebd5e63cc0
    etag = nil,
    expiration = nil,
    request_charged = nil,
    server_side_encryption = nil,
    sse_customer_algorithm = nil,
    sse_customer_key_md5 = nil,
    ssekms_encryption_context = nil,
    ssekms_key_id = nil,
    version_id = nil
>
Also, is there an easy way to know if it's success or fail? Something like status == 200?
sumanreddyk
@sumanreddyk
Hello All , I need help on sts.get_session_token() api call, It's throwing 'Failed to open TCP connection to : (getaddrinfo: No such host is known. )' exception . AWS CLI get-session-token is working fine. Note:- I am running behind corporate proxy.
Andrew Cao
@dreamsoftech
Hi All, I have embedded quick sight dashboard to my web app. But it loads very slowly. Since it is loaded in iframe and url is changed every time, it is very slow.
Is there any better solution to make it faster?
siassaj
@siassaj
i cant see it
your link working?
Cami Meneses
@CamiMeneses
Hello All. Please help me!! Somebody knows how to get a private file using Ruby on Rails. At this moment I can get files only if they are public but I need get the private ones
Aliaksandr Rahalevich
@saks
hey everyone! I'm getting NameError: uninitialized constant Aws::Structure when require 'aws-sdk-secretsmanager'. This started happening after upgrade of aws-sdk-core from 3.91.1 -> 3.92.0. Anybody else having this issue?
Helmut Reiterer
@helmutrs
hello, I'm using ruby sdk v.2 , is there any example out there to send background notification to iOS 13 devices, please?
ruby aws sns v.2
chaitanyasabale
@chaitanyasabale
@proffalken Did you manage to resolve the issue of IPAddr::InvalidAddressError: invalid address ?
Aaditya Sharma
@lordozb
Hello guys! Is there any way to connect using IAM Role instead of access and secret keys?
I am trying to connect to AWS GLUE using Ruby SDK
Jessie Chen
@jessie00chen
Hello! I am trying to use this API: https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IAM/Types/RoleLastUsed.html however the #last_used_date is nil even though the last used date is today. Is the API working as expected?
dave
@davedega
can i get AWSCredentials for a specific role ?
nvadakoppula
@nvadakoppula
def lambda_handler(response, context):

instance = 0

status = 0

response = client.list_resource_compliance_summaries(
    Filters=[
        {
            'Key': 'ComplianceType',
            'Values': [
                'Patch',
            ],
            'Type': 'EQUAL'
        },
    ],
instance = response.list_resource_compliance_summaries[resource_id],
status = response.list_resource_compliance_summaries[status]
but i see below error in lambda
"errorMessage": "'dict' object has no attribute 'list_resource_compliance_summaries'"
can someone help me here?
anhnguyen1tomosia
@anhnguyen1tomosia
Hi awser
i want to ask how can i use paginate with query in aws dynamodb client?