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
77 stars 41 forks source link

servicecatalog-puppet-deploy code build is failing after upgrding puppet module to 0.246.0 version with the error ::: File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/servicecatalog_puppet/commands/manifest.py", line 51, in assemble_manifest_from_ssm action_name = parts[4] IndexError: list index out of range #709

Open Samram1201 opened 4 months ago

Samram1201 commented 4 months ago

servicecatalog-puppet-deploy code build was failing when run for all the accounts with the below error: 2024-05-02T20:47:18.222Z INFO: Worker Worker(salt=695160401, workers=**, host=c56d35488f81, username=root, pid=464) was stopped. Shutting down Keep-Alive thread

2024-05-02T20:47:18.222Z INFO Thread-1 Worker Worker(salt=695160401, workers=**, host=c56d35488f81, username=root, pid=464) was stopped. Shutting down Keep-Alive thread

As referenced in issue #674(servicecatalog-puppet-bootstrap-spokes-in-ou Code buold job is failing with attribute Error #674)) We upgraded the version to the latest version . After upgrading ,when we trigger the code build for single account ,it is failing with the below error

Overridden parameters {'single_account': None, 'subset': {}} 203 | Expanding 204 | Traceback (most recent call last): 205 | File "/root/.pyenv/versions/3.9.17/bin/servicecatalog-puppet", line 8, in 206 | sys.exit(cli()) 207 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/click/core.py", line 764, in call 208 | return self.main(args, kwargs) 209 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/click/core.py", line 717, in main 210 | rv = self.invoke(ctx) 211 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/click/core.py", line 1137, in invoke 212 | return _process_result(sub_ctx.command.invoke(sub_ctx)) 213 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/click/core.py", line 956, in invoke 214 | return ctx.invoke(self.callback, ctx.params) 215 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/click/core.py", line 555, in invoke 216 | return callback(args, kwargs) 217 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/servicecatalog_puppet/cli.py", line 398, in expand 218 | manifest_commands.expand(f, puppet_account_id, regions, extra_params) 219 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/servicecatalog_puppet/commands/manifest.py", line 65, in expand 220 | assemble_manifest_from_ssm(target_directory) 221 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/servicecatalog_puppet/commands/manifest.py", line 51, in assemble_manifest_from_ssm 222 | action_name = parts[4] 223 | IndexError: list index out of range 224

Could you please help to resolve this as it impacts the deployments .

Samram1201 commented 4 months ago

@eamonnfaherty ,could you please help on this issue?

eamonnfaherty commented 2 months ago

sorry I missed this. I was not getting emails from github. Could you please share your manifest file.

Samram1201 commented 2 months ago

Yes, this is the manifest file we had earlier


accounts:

launches: iam-blueprint: deploy_to: tags:

Thanks , Ramya D

Samram1201 commented 1 month ago

Hi @eamonnfaherty ,could you please help me with this issue on how we can define the SSM parameters in manifest file of service catalog puppet ?

Samram1201 commented 1 week ago

Hi Eamonn,

I have updated the manifest file in github . Would you be able to check and assist me on this issue?

Thanks & Regards, Ramya Duraisamy Intelligent Cloud & Infrastructure,ATCI Bangalore Cell: +91 7899820781

From: Eamonn Faherty @.> Sent: Wednesday, July 3, 2024 7:46 PM To: awslabs/aws-service-catalog-puppet @.> Cc: Duraisamy, Ramya @.>; Author @.> Subject: [External] Re: [awslabs/aws-service-catalog-puppet] servicecatalog-puppet-deploy code build is failing after upgrding puppet module to 0.246.0 version with the error ::: File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/servicecatalog_pup...

CAUTION: External email. Be cautious with links and attachments.

sorry I missed this. I was not getting emails from github. Could you please share your manifest file.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/awslabs/aws-service-catalog-puppet/issues/709*issuecomment-2206237519__;Iw!!OrxsNty6D4my!4uSWfyz1z5LuP9JIFoSp0yVjpADOo9MTqEWCv-mnBGct-qnefUsH-5FnOC-I2xNk0Gz7uEcUXr1xhAGvLGHZcPMrYzNI4Qw$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ASWTW4DAU7DVZPZJMEZXOHDZKQBQTAVCNFSM6AAAAABKJVY2EGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBWGIZTONJRHE__;!!OrxsNty6D4my!4uSWfyz1z5LuP9JIFoSp0yVjpADOo9MTqEWCv-mnBGct-qnefUsH-5FnOC-I2xNk0Gz7uEcUXr1xhAGvLGHZcPMrqRckkzs$. You are receiving this because you authored the thread.Message ID: @.**@.>>


This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security, AI-powered support capabilities, and assessment of internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement at https://www.accenture.com/us-en/privacy-policy.


www.accenture.com