16 Jun 2024 ansible saas tips

2024-06-19 13:32:48 浏览数 (1)

创建集群

代码语言:javascript复制
ansible-saas customer create -b new-br

rosa删除集群

代码语言:javascript复制
rosa delete cluster -c cus-wub898 --best-effort

登录集群

代码语言:javascript复制
ansible-saas cluster login cluster_name

获取集群

代码语言:javascript复制
ansible-saas customer list

删除集群

代码语言:javascript复制
ansible-saas customer delete SUBSCRIPTION_ID

or

ansible-saas cluster list --tracer-id TRACER_ID
ansible-saas cluster delete INVENTORY_ID

获取权限

代码语言:javascript复制
aws sts assume-role --role-arn "arn:aws:iam::123456789012:role/example-role" --role-session-name AWSCLI-Session

export AWS_ACCESS_KEY_ID=RoleAccessKeyID
export AWS_SECRET_ACCESS_KEY=RoleSecretKey
export AWS_SESSION_TOKEN=RoleSessionToken

获取waf logging的policy

代码语言:javascript复制
aws logs describe-resource-policies

LEo at 00:12

0 人点赞