Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid PNG format in set-ui-customization in aws cognito

I am using below aws cli command to modify the UI.

aws cognito-idp set-ui-customization --user-pool-id us-west-2_XXXXXXX --client-id ALL  --css ".submitButton-customizable{background-color: #0091e1;} " --region us-west-2 --image-file Logo.png

But it is giving me an error that my PNG File is not valid.

I have seen the documentation and found that image-file should have file format Base64-encoded binary data object

I am using Linux Instance (Ubuntu) and running this command from terminal.

How can i correct this?

like image 729
Jayesh Dhandha Avatar asked Oct 24 '25 22:10

Jayesh Dhandha


1 Answers

I had the same problem, try using the fileb://./Logo.png syntax with the --image-file flag, e.g.

aws cognito-idp set-ui-customization --user-pool-id us-west-2_XXXXXXX --client-id ALL  --css ".submitButton-customizable{background-color: #0091e1;} " --region us-west-2 --image-file fileb://./Logo.png
like image 199
Ravenscar Avatar answered Oct 27 '25 20:10

Ravenscar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!