Create AWS QuickSight resources with AWS CLI command - amazon-web-services

I am trying to create a script that will provision QuickSight account and will configure the following parameters:
Subscription type
SPICE Capacity
VPC connection
QuickSight access to AWS services
From the AWS CLI QuickSight documentation I couldn't find a way to create the account, choose subscription type and change SPICE Capacity.
What am I missing?

I believe you are looking for the 'register user' command from the CLI.
https://docs.aws.amazon.com/cli/latest/reference/quicksight/register-user.html

Related

Migration from AWS Aurora to AWS Aurora

We were planning to migrate from local Oracle database to AWS Aurora(Posgres) in my customer's AWS account with AWS DMS, but my customer told us they don't know whether AWS DMS is allowed to use or not in their AWS account(due to their company rule).
So, we are planning to do follow action in case of AWS DMS is impossible.
First: Migrate from local Oracle database to AWS Aurora(Posgres) in our AWS account with AWS DMS.
Second: Migrate from AWS Aurora(Posgres) in our AWS account to AWS Aurora(Posgres) in my customer's AWS account.
I tried searching how to migrate, but could't find the answer.
Does anyone know the idea?
Your architecture works.
I believe that you won't have any problem with the first step.
But for the second one, you have the following options:
If your AWS account can connect to your customer AWS Aurora, you can use DMS in your account to migrate your database.
If your AWS account can't connect to your customer AWS Aurora, you can create a dump file, send it to your customer and restore the dump in their account.

Can I use an existing Grafana Cloudwatch datasource to build dashboards for a different AWS account?

I have an existing Cloudwatch datasource on Grafana, with ARN as the Auth Provider. Can I use this already existing datasource itself to build dashboards for Cloudwatch metrics hosted in a different AWS account? Or should I create a new datasource for this new AWS account?
Unfortunately, you have to create a new datasource for that new AWS account.

How create a role for long running glue redshift job?

A long running glue jobs for exporting data from Redshift to s3 are failed du to S3ServiceException:The provided token has expired. Amazon describes using a custom role as workaround (here). But they do not provide any example. Could somebody provide a cloudformation snipped? What a role should looks like? If I uses glue job should I add action for dynamodb or EMR cluster into Role policy?

How to find out who created aws cloudwatch alarm/metrics?

How do I find out what IAM user created certain metrics and alarms?
I tried CLI commands: describe-alarms and list-metrics and they don't seem to provide this information nor when looking at the configuration for the alarms and metrics in the AWS console.
While users call APIs to create resources in AWS, those resources are associated with the AWS Account rather than a user. As long as a user has permission to create resources in the account, the resources will be created/viewed/deleted.
However, you can use AWS CloudTrail to retrieve information about the API calls themselves:
AWS CloudTrail is an AWS service that helps you enable governance, compliance, and operational and risk auditing of your AWS account. Actions taken by a user, role, or an AWS service are recorded as events in CloudTrail. Events include actions taken in the AWS Management Console, AWS Command Line Interface, and AWS SDKs and APIs.

List all AWS billable resources

Is there any way to list all the billable resources (basically EC2,EBS,RDS) in an AWS account.Is there any aws-cli command or script available to do so.
I have the aws account root access.
Unfortunately it's not possible to retrieve billing details for AWS resources via AWS CLI directly.
What you can do is store billing reports on S3 and then you can programmatically read and analyze those reports that are generated in CSV format (Billing -> Preferences).
Reference:
http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-reports.html#turnonreports