AWS Cli command to get "AWS CLI Export" - amazon-web-services

When EMR Cluster has been provisioned, I want to get the "AWS CLI Export" output using aws cli command.
Please let me know if someone has an idea to get aws cli export output through aws cli command

Related

Why the command aws iam list-users not working?

aws iam list-users command not working
I have setup AWS CLI in Windows. The path has been added under the system environment variable.
When I try the commands aws --version and aws configure, it is successful. But to see the list of users the command aws iam list-users is throwing this error:
'more' is not recognized as an internal or external command, operable program or batch file.
I am stuck. Could anyone help please?
It sounds like the AWS CLI is trying to use an output paginator that is not in the path.
Put simply, AWS CLI sends its output via a utility that lets you 'page' through the results. In your case, it is trying to use the more command.
You can tell the AWS CLI not to use a paginator by putting this in the .aws/config file:
[default]
cli_pager=
For more details, see: Using AWS CLI pagination options - Client-side pager - AWS Command Line Interface

How to start, stop activities/steps of aws data pipeline from CLI or API?

AWS CLI documentation doesn't have a command to start/stop a specific activity in datapipelines?
Is set-status and set-task-status is used for that?
From the documentation of datapipeline, there are two commands activate-pipeline and deactivate-pipeline, you can try this:
aws datapipeline activate-pipeline --pipeline-id pipe-id --start-activity-id activity-id
and
aws datapipeline deactivate-pipeline --pipeline-id pipe-id --stop-activity-id activity-id

AWS DMS cli command

Is there an aws cli command to create a dms source endpoint which would use secret manager for access?
I do not find anything on the aws cli docs as well.

How to run codepipeline from AWS chatbot

I'm trying to run AWS codepipeline from slack using AWS chatbot feature. I've configured a chatbot properly and it is giving me appropriate response when I'm running a command
#aws codepipeline list-pipelines --region us-east-1
With this command it is showing me all the configured codepipelines in my AWS account.
However when I'm trying to run a pipeline using
#aws codepipeline start-pipeline-execution --name dev-pipeline
I'm getting following error.
I can't run the command codepipeline start-pipeline-execution because it isn't enabled.
There's no option I can see in AWS Chatbot to enable this pipeline.
I'm able to run this same pipeline using AWS CLI and its working perfectly fine.
Can someone please give me any pointer to configure AWS Chatbot from Slack to run AWS Codepipeline?

How to see the deployment progress via aws cli

I created a deployment using AWS cli:
aws deploy create-deployment --application-name systest1 --deployment-group-name TEST --s3-location bucket=artifacts,bundleType=zip,key=APP.zip
and I got the out as
{
"deploymentId": "d-559F8S41O"
}
How can I see the status of the deployment?? I believe
aws deploy get-deployment
will show us the status but it will not show continuous progress. Actually, I am using AWS cli so use don't have to go on AWS console and check the deployment status instead he will get the result on gitlab-ci output only. Any suggestion??
Use the below CLI command to get the status:
aws deploy get-deployment --deployment-id d-52EZVE6PC --query "deploymentInfo.[status, creator]" --output text