Skip to content

Commit

Permalink
Merge in upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Jun 13, 2023
1 parent 9ce2122 commit d6ed258
Show file tree
Hide file tree
Showing 120 changed files with 18,071 additions and 7,421 deletions.
3 changes: 2 additions & 1 deletion scripts/fix_data_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
from cfnlint.helpers import format_json_string

modules = [
"ExtendedSpecs",
"AdditionalSchemas",
"AdditionalSpecs",
"CfnLintCli",
"ExtendedProviderSchemas",
"Serverless",
"ProviderSchemasPatches",
]
Expand Down
10 changes: 8 additions & 2 deletions scripts/update_specs_from_pricing.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import logging

import boto3
from botocore.client import Config

LOGGER = logging.getLogger("cfnlint")

Expand Down Expand Up @@ -56,7 +57,8 @@
}

session = boto3.session.Session()
client = session.client("pricing", region_name="us-east-1")
config = Config(retries={"max_attempts": 10})
client = session.client("pricing", region_name="us-east-1", config=config)


def configure_logging():
Expand Down Expand Up @@ -271,7 +273,11 @@ def main():
"""main function"""
configure_logging()

# write_output('EC2InstanceType', get_results('AmazonEC2', ['Compute Instance', 'Compute Instance (bare metal)']))
write_output(
"aws-ec2-instance",
"instancetype-enum",
get_results("AmazonEC2", ["Compute Instance", "Compute Instance (bare metal)"]),
)
write_output("aws-amazonmq-broker", "instancetype-enum", get_mq_pricing())
write_output("aws-rds-dbinstance", "dbinstanceclass-enum", get_rds_pricing())
write_output(
Expand Down
Loading

0 comments on commit d6ed258

Please sign in to comment.