Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dabeerislam9 opened this issue Jan 22, 2024 · 1 comment
Open

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

dabeerislam9 opened this issue Jan 22, 2024 · 1 comment
Labels
question Further information is requested

Comments

@dabeerislam9
Copy link

dabeerislam9 commented Jan 22, 2024

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:
- account_id: *xyz_account_id

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
Copy link
Contributor

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

@eamonnfaherty eamonnfaherty added the question Further information is requested label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants