1

I am copying data from a S3 bucket to a table in Redshift. For this, I require my AWS secret and access keys in the code but I want to avoid doing that. Hence, I need to encrypt and then decrypt them. I would really like to know a way of doing this in Python.

Thanks

  • 1
    Are you asking us to give you Python code? (This might be too broad) Or are you asking how to handle a secret access key in AWS? – Artjom B. Mar 09 '16 at 07:37
  • I'm asking how to handle a secret access key in AWS while doing the task mentioned above in Python. I can write up the code. Just need to start somewhere. – Carishma Shetty Mar 09 '16 at 15:02

1 Answers1

0

If your application is running over amazon instances you not need to pass the keys you can create and application role for that for more information see this doc

http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2.html

Douglas Lopez
  • 396
  • 3
  • 4