awslabs / aws-service-catalog-puppet

This is a framework where you list your AWS accounts with tags and your AWS Service Catalog products with tags or target accounts. The framework works through your lists, dedupes and spots collisions and then provisions the products into your AWS accounts for you. It handles the Portfolio sharing, its acceptance and can provision products cross account and cross region.
Apache License 2.0
76 stars 41 forks source link

Macro get_accounts_for_path doesn't work #691

Open mpratsch opened 1 year ago

mpratsch commented 1 year ago

Hi Eamonn,

I was playing around with the macro but that didn't work.

Describe the bug

puppet validation fails (puppet version 0.242.0)

In the manifest.yaml file in puppet I tried the macros described in the documentation.

parameters:
    AllAccountIds:
      macro:
        method: get_accounts_for_path
        args: /

Error:


yamale.yamale_error.YamaleError: Error validating data with schema '/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/servicecatalog_puppet/schema.yaml'
  parameters.AllAccountIds.default: Required field missing
  parameters.AllAccountIds.ssm: Required field missing
  parameters.AllAccountIds.boto3: Required field missing
  parameters.AllAccountIds.mapping: Required field missing

I see that's not covered in the schema.yaml.

Do I use it wrong?

Thanks, Martina