Code Monkey home page Code Monkey logo

Comments (8)

herebebogans avatar herebebogans commented on June 18, 2024 1

Hi - I raised this against the aws-ruby-sdk project and AWS may have a fix soon for the list_distributions api.

(aws/aws-sdk-ruby#1421 (comment))

from awspec.

k1LoW avatar k1LoW commented on June 18, 2024

http_version return String, one of "http1.1", "http2"

I don't know why got nil.

from awspec.

herebebogans avatar herebebogans commented on June 18, 2024

Hi thanks for the reply.

It's strange - if I use the aws cli for the cloudfront distribution in question it shows

aws cloudfront get-distribution --id XXXXX | grep -C 1 HttpVersion
},
"HttpVersion": "http2",
"Restrictions": {

If I step into lib/awspec/type/cloudfront_distribution.rb@resource_via_client with pry during the spec

[1] pry(#Awspec::Type::CloudfrontDistribution)> @resource_via_client
=> #<struct Aws::CloudFront::Types::DistributionSummary
....
.....

#<struct Aws::CloudFront::Types::Restrictions
geo_restriction=#<struct Aws::CloudFront::Types::GeoRestriction restriction_type="none", quantity=0, items=[]>>,
web_acl_id="f3238192-2d0e-431c-bf7b-ba2645dc74c6",
http_version=nil>

from awspec.

herebebogans avatar herebebogans commented on June 18, 2024

Sorry - I can see the nil is coming from the sdk Aws::CloudFront::Client.list_distributions

I'll raise a bug there.

from awspec.

herebebogans avatar herebebogans commented on June 18, 2024

Hi - sorry for the reopen.

I did a bit more investigation and some Cloudfront distribution properties including

http_version

and

logging

are only populated from Aws::CloudFront::Client.get_distribution

lib/awspec/helper/finder/cloudfront.rb

uses AWS::CloudFront::Client.list_distributions.

from awspec.

k1LoW avatar k1LoW commented on June 18, 2024

Hi @herebebogans . Thank you for your report!!

from awspec.

herebebogans avatar herebebogans commented on June 18, 2024

Hi - AWS have fixed it :P

from awspec.

k1LoW avatar k1LoW commented on June 18, 2024

@herebebogans Thank you for your report! 👍

from awspec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.