Access a container from a nova server inside heat

asked 2014-12-25 03:58:31 -0600

erivni gravatar image


I want to create a template which deploys a swift container and a nova server. The user_data inside the server will upload/download files from this container.

I tried to create a user by using: AWS::IAM::User, AWS::IAM::AccessKey and OS::Heat::AccessPolicy resources but when I try to access the container I get an authentication failure. Is there a way to access the container without passing the os username and password credentials as a template parameters?

Thanks for your help,


edit retag flag offensive close merge delete


You can make your container publicly accessible.

Can you post the code you used to create the containers ?

I believe adding this property would make it publicly readable 'X-Container-Read: ".r:*"' Then you can read the objects by using a URL. Similarly you can provide write access as well.

bingoarunprasath gravatar imagebingoarunprasath ( 2014-12-30 04:59:23 -0600 )edit

Hi, I'm using a public container. Here's the code:

swift_container: type: OS::Swift::Container properties: name: myContainer

I can't access this container from an inside user(AWS::IAM::User in the template). I only can have access by passing my os-username, os-tenant and os-password.

erivni gravatar imageerivni ( 2014-12-30 05:21:12 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-07 19:28:11 -0600

asalkeld gravatar image

Hi Einav

You could let Heat do this for by using SoftwareConfiguration resources.

Try this template:

Note if you change line 80 to POLL_TEMP_URL Heat will use swift temp urls, to provide tempory non-authenticated access from the guest to data like this.


edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-12-25 03:58:31 -0600

Seen: 555 times

Last updated: Jan 07 '15