# How to deploy using start-asset-bundle-import-job to several namespaces?

**URL:** <https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104>\
**Category:** Q&A\
**Tags:** quick-sight\
**Created:** [September 15, 2023, 3:48pm UTC](https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104 "2023-09-15T15:48:44Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![alltej](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@alltej](https://community.amazonquick.com/u/alltej)\
**Post date:** [September 15, 2023, 3:48pm UTC](https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104/1 "2023-09-15T15:48:44Z")

</div>

I am trying out asset-as-bundle (AAB) deployment. I have several namespaces and the dashboards for those namespaces are prefixed with the namespace-hash plus the dashboard-id. So the exported json will contain only the dashboard-id and it will be deployed to several namespaces where the dashboard-id will have the namespace\_hash+dashboard\_id.

How can I do that with the start-asset-bundle-import-job. I see the override-parameters args with the PrefixForAllResources but that looks like will apply to all resources.

---

<div class="post-metadata">

**Author:** ![alltej](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@alltej](https://community.amazonquick.com/u/alltej)\
**Post date:** [September 18, 2023, 2:33pm UTC](https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104/2 "2023-09-18T14:33:03Z")

</div>

@sagmukhe Do you have any thoughts on this? Thanks!

---

<div class="post-metadata">

**Author:** ![WLS-DM](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/wls-dm/32/36109_2.png) [@WLS-DM](https://community.amazonquick.com/u/WLS-DM)\
**Post date:** [September 18, 2023, 9:28pm UTC](https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104/3 "2023-09-18T21:28:28Z")

</div>

Hello @alltej, there is pretty good documentation on utilizing the [StartAssetBundleImportJob](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_StartAssetBundleImportJob.html) and well as the [CreateNamespace](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_CreateNamespace.html) and [ListNameSpaces](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_ListNamespaces.html) functionalities for the AAB deployment. If there is a specific part of the process you are stuck on, I might be able to help a bit further.

---

<div class="post-metadata">

**Author:** ![zhaopan](https://avatars.discourse-cdn.com/v4/letter/z/ebca7d/32.png) [@zhaopan](https://community.amazonquick.com/u/zhaopan)\
**Post date:** [September 21, 2023, 11:33pm UTC](https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104/4 "2023-09-21T23:33:29Z")

</div>

Here is the [developer guide](https://docs.aws.amazon.com/quicksight/latest/developerguide/welcome.html) for the asset bundle APIs. Please have a look.

---

<div class="post-metadata">

**Author:** ![alltej](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@alltej](https://community.amazonquick.com/u/alltej)\
**Post date:** [September 22, 2023, 4:56pm UTC](https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104/5 "2023-09-22T16:56:13Z")

</div>

Our source and target accounts have these asset-ids naming convention:

**From: source-account assets/dashboard:**  
dashboard1  
dashboard2  
…  
dashboard12

And we need to deploy to several namespaces:

**1. namespace1:**

namespace1-dashboard1  
namespace1-dashboard2  
**…**  
namespace1-dashboard12

**2. namespace2:**

namespace2-dashboard1  
namespace2-dashboard2  
**…**  
namespace2-dashboard12

**…**  
**200. namespace200:**

namespace200-dashboard1  
namespace200-dashboard2  
**…**  
namespace200-dashboard12

**So how do I deploy these with asset-as-bundle(AAB) with the available AAB api?**

---

<div class="post-metadata">

**Author:** ![alltej](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@alltej](https://community.amazonquick.com/u/alltej)\
**Post date:** [September 27, 2023, 5:29pm UTC](https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104/6 "2023-09-27T17:29:42Z")

</div>

@WLS-DM Did you get a chance to look at this?

---

<div class="post-metadata">

**Author:** ![WLS-DM](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/wls-dm/32/36109_2.png) [@WLS-DM](https://community.amazonquick.com/u/WLS-DM)\
**Post date:** [September 27, 2023, 8:14pm UTC](https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104/7 "2023-09-27T20:14:29Z")

</div>

Hello @alltej, I apologize for the delay in the response. This required a bit of digging on my end but I found some awesome documentation related to namespaces. From what I can tell, bear with me here, it seems like the best solution will be to create user groups that will be linked to the users in a namespace. That group will contain the dashboard permissions and then that group can get set to the namespace.

This is the command I was seeing that might be the most relevant:

```auto
***Scenario 2: User Sharing Dashboard to Group***

aws quicksight update-dashboard-permissions --aws-account-id ############ --dashboard-id ‘123a6402-7c8e-4e50-8142-52a5bc46f4f4’ --grant-permissions Principal=‘arn:aws:quicksight:us-east-1:############:group/namespace-1/Group-4’,Actions=‘quicksight:DescribeDashboard,quicksight:QueryDashboard,quicksight:ListDashboardVersions’

```

I’ll link the rest of the article [here](https://community.amazonquick.com/t/understanding-namespaces-groups-users-and-shared-folder-in-amazon-quicksight/13158) because I think this will be really helpful to you. I hope this helps!

---

<div class="post-metadata">

**Author:** ![alltej](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@alltej](https://community.amazonquick.com/u/alltej)\
**Post date:** [September 28, 2023, 5:53pm UTC](https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104/8 "2023-09-28T17:53:49Z")

</div>

That is assigning permissions by group to dashboards within a namespace.

But I still need to create/deploy a dashboard to several namespaces with these id convention:  
namespace#N-dashboard1

If I don’t provide the PrefixForAllResources optional arg, can I just populate the ID and it will apply to that ID to create or update in the target account?

```auto
...
"OverrideParameters": {
"Dashboards": [
            {
                "DashboardId": "namespace1-dashboard1",
                "Name": "namespace1 - Dashboard In Target Account"
            }
        ]
}

```

A namespace is a client. We cannot do cross-namespace or cross-client group/permission, hence we created assets in these naming convention : namespace1-dashboard1

---

<div class="post-metadata">

**Author:** ![alltej](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@alltej](https://community.amazonquick.com/u/alltej)\
**Post date:** [September 28, 2023, 6:45pm UTC](https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104/9 "2023-09-28T18:45:35Z")

</div>

I am gettting a SUCCESSFUL status from response in describe-import but I don’t see the dashboard updated. I am running in same account but I don’t think if that matters. The issue is I did not see dashboard updated or there are no new dashboards versions.

---

<div class="post-metadata">

**Author:** ![alltej](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@alltej](https://community.amazonquick.com/u/alltej)\
**Post date:** [September 28, 2023, 7:56pm UTC](https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104/10 "2023-09-28T19:56:05Z")

</div>

Since it is SUCCESSFUL status, Is there way to verify something is created? I don’t see any new versions created.

---

<div class="post-metadata">

**Author:** ![WLS-DM](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/wls-dm/32/36109_2.png) [@WLS-DM](https://community.amazonquick.com/u/WLS-DM)\
**Post date:** [September 29, 2023, 6:25pm UTC](https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104/11 "2023-09-29T18:25:10Z")

</div>

Helloi @alltej, I could be wrong about this but I don’t think it would create a new Dashboard, I just think it would make the dashboard viewable by people within that namespace. If you have access to the Dashboard while in an account linked to the namespace, then I think that means it worked.

Another possibility is you would need to create the Dashboard with the proper name for each Namespace and then you could assign them to a namespace.

---

<div class="post-metadata">

**Author:** ![WLS-DM](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/wls-dm/32/36109_2.png) [@WLS-DM](https://community.amazonquick.com/u/WLS-DM)\
**Post date:** [October 3, 2023, 2:47pm UTC](https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104/12 "2023-10-03T14:47:33Z")

</div>

Hello @alltej, did my response help you resolve your issue in Quick Sight? If so, feel free to mark it as a solution. If not, please follow-up with some more details about the issue you are facing and I can try to guide you toward a solution. Thank you!

---

<div class="post-metadata">

**Author:** ![alltej](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@alltej](https://community.amazonquick.com/u/alltej)\
**Post date:** [October 12, 2023, 3:03pm UTC](https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104/13 "2023-10-12T15:03:54Z")

</div>

I need a way to verify the dashboard was created just like when you update a dashboard it will give you a version number in response then i can call back later given the version number to see the status of that dashboard. How do that verification with the start-asset-bundle-import-job?

---

<div class="post-metadata">

**Author:** ![WLS-DM](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/wls-dm/32/36109_2.png) [@WLS-DM](https://community.amazonquick.com/u/WLS-DM)\
**Post date:** [October 25, 2023, 3:27pm UTC](https://community.amazonquick.com/t/how-to-deploy-using-start-asset-bundle-import-job-to-several-namespaces/18104/14 "2023-10-25T15:27:42Z")

</div>

Hello @alltej, I apologize for my delayed response! Do you mind posting this follow-up question as a new topic within the Quick Sight community? That way your question will be a top priority for a response from one of our Quick Sight experts and we can track the follow-up seperately. Thank you!
