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

Puppet YAML file not reading variable named "account_id" #703

Open dabeerislam9 opened 9 months ago

dabeerislam9 commented 9 months ago

My team and I are trying to deploy a puppet YAML file with a new edit to add a new VPC in a fresh created AWS account, the account does exist and we are pasting the correct account ID, below is the syntax we are deploying

deploy_to: accounts:

Running this with puppet produces the below error:

File "/root/.pyenv/versions/3.9.17/bin/servicecatalog-puppet", line 8, in sys.exit(cli()) File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/click/core.py", line 764, in call return self.main(args, kwargs) File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, ctx.params) File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/click/core.py", line 555, in invoke return callback(args, kwargs) File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/servicecatalog_puppet/cli.py", line 407, in generate_task_reference task_reference_commands.generate_task_reference(f) File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/servicecatalog_puppet/commands/task_reference.py", line 29, in generate_task_reference complete = complete_generator.generate( # hub and spokes File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/servicecatalog_puppet/commands/task_reference_helpers/complete_generator.py", line 76, in generate tasks_to_add = manifest.get_tasks_for( File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/servicecatalog_puppet/manifest_utils.py", line 57, in get_tasks_for account = self.get_account(account_id_of_account_to_deploy_to) File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/servicecatalog_puppet/manifest_utils.py", line 1232, in get_account raise Exception(f"Could not find account: {account_id}") Exception: Could not find account: None

[Container] 2024/01/22 19:05:45.342779 Command did not exit successfully servicecatalog-puppet --info generate-task-reference $PWD/manifest-expanded.yaml exit status 1

If anyone has faced this error and could help with a solution please

eamonnfaherty commented 4 months ago

Could you please share your manifest yaml and expanded manifest yaml.