Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack summaries #585

Closed
errordeveloper opened this issue Feb 26, 2019 · 1 comment
Closed

stack summaries #585

errordeveloper opened this issue Feb 26, 2019 · 1 comment
Labels
area/general-cli good first issue Good for newcomers help wanted Extra attention is needed kind/feature New feature or request

Comments

@errordeveloper
Copy link
Contributor

errordeveloper commented Feb 26, 2019

We currently have this:

$ eksctl utils describe-stacks --name=extravagant-outfit-1550669291 --region=eu-west-2 --trail
[ℹ]  stack/eksctl-extravagant-outfit-1550669291-cluster = {
  Capabilities: ["CAPABILITY_IAM"],
  CreationTime: 2019-02-20 13:28:12.497 +0000 UTC,
  DeletionTime: 2019-02-26 11:33:22.852 +0000 UTC,
  Description: "EKS cluster (dedicated VPC: true, dedicated IAM: true) [created and managed by eksctl]",
  DisableRollback: false,
  EnableTerminationProtection: false,
  Outputs: [
    {
      ExportName: "eksctl-extravagant-outfit-1550669291-cluster::SubnetsPrivate",
      OutputKey: "SubnetsPrivate",
      OutputValue: "subnet-0eb53c5f05b560ccf,subnet-0bc81f6da501ea073,subnet-096fcb906b3246414"
    },
    {
      ExportName: "eksctl-extravagant-outfit-1550669291-cluster::SubnetsPublic",
      OutputKey: "SubnetsPublic",
      OutputValue: "subnet-036ddd67f67fdb004,subnet-00d4ebbca5fdd6cf1,subnet-0b47c89b1102efd2b"
    },
    {
      ExportName: "eksctl-extravagant-outfit-1550669291-cluster::Endpoint",
      OutputKey: "Endpoint",
      OutputValue: "https://2EA93704B353B63A81B31ED170C73812.sk1.eu-west-2.eks.amazonaws.com"
    },
    {
      ExportName: "eksctl-extravagant-outfit-1550669291-cluster::ServiceRoleARN",
      OutputKey: "ServiceRoleARN",
      OutputValue: "arn:aws:iam::376248598259:role/eksctl-extravagant-outfit-1550669291-c-ServiceRole-ML4JBM2FUFDZ"
    },
    {
      ExportName: "eksctl-extravagant-outfit-1550669291-cluster::SharedNodeSecurityGroup",
      OutputKey: "SharedNodeSecurityGroup",
      OutputValue: "sg-0f5dc04deb5153e1c"
    },
    {
      ExportName: "eksctl-extravagant-outfit-1550669291-cluster::VPC",
      OutputKey: "VPC",
      OutputValue: "vpc-0491754635ac2df96"
    },
    {
      OutputKey: "ClusterStackName",
      OutputValue: "eksctl-extravagant-outfit-1550669291-cluster"
    },
    {
      OutputKey: "CertificateAuthorityData",
      OutputValue: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN5RENDQWJDZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRFNU1ESXlNREV6TXpVek0xb1hEVEk1TURJeE56RXpNelV6TTFvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBT0RGCkQxNTMvNFpCcjYxR3dSQWFoWXVnZkdRckwxenFzZVdvSWg3UGI5OFZmelMrTndoR3FsQzlNUjR0U3VqNmZueXAKdEtXbXlyWWlLTWJ5UmRISVdoaWl1V2w2aEdzREY0T0lLalhzcmJWSW1udC9GRWw2L2daayttYTlsK042OUJ1cwozTEhqa0tFMHViUEQ5YVFXVFpSNWR6QU43U3VJQjNJRFhhVDREV0RMNnBlRFRhb01pSzdkZGIvOVo0MkxoNWpsClFSZHAxQUJxODd6UFFqdVZaOHZJblNEWFpOVGZMU1BtMkh1TFYwTGYzWThYSE0xZEthSjJnZ3JGNis2cFM3UHoKZVE0RjJKeHdzdEhvTkxQRy9rWWkyNEc1Z2pKWmhaN3RYeDlOYTlDVUcxZVVLeTh6MXBwRVBUalJaR1lnVTdKUApGck00YkZwUjBWeUZLU2psbTE4Q0F3RUFBYU1qTUNFd0RnWURWUjBQQVFIL0JBUURBZ0trTUE4R0ExVWRFd0VCCi93UUZNQU1CQWY4d0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dFQkFMNnAyUTlVTSt6U1o3VXp6dFdNNlE0alhRcHgKWGE1REI4Ri9mTk5lNTNDcnhUcDBYZ3ZITzdINEdCR2hrQkt3Z3pOeDE3ei9CQmlxclRaeXprVmZnZWx4UU5WSgpJUFZqYVBPY0lXS0I3RTVvR1dGMTlHZGRSSTZrU1l6bWV3bjRHR1NYUmVCbDhXRXEzWGtPYlB1bCtYbHl3ZlBiCnZWUzdVVlJNOWI5L01JUVp2bG9odU9rVjR3QVE0NkdVTzNGUVMxV1N0OFNiU3I0WUxRa0xPMHFyZzhzT3B2dksKdmJmVkRWamJrUHRZekgzeVduaFYxWHUwQ25BK0lNWEcwMDFTY2NNazZib1lyZm52T2NNWnl3bVlqOTJqWEpkSApUVGtlL0ZybFJqaEhieXJ2RmVWMjVyVHZMaHExOFdPazZpZmNqc1JjcytvVG9LR01ubFJiTXBWUXZYVT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="
    },
    {
      ExportName: "eksctl-extravagant-outfit-1550669291-cluster::SecurityGroup",
      OutputKey: "SecurityGroup",
      OutputValue: "sg-0636c06d3073c7c26"
    },
    {
      ExportName: "eksctl-extravagant-outfit-1550669291-cluster::ARN",
      OutputKey: "ARN",
      OutputValue: "arn:aws:eks:eu-west-2:376248598259:cluster/extravagant-outfit-1550669291"
    }
  ],
  RollbackConfiguration: {

  },
  StackId: "arn:aws:cloudformation:eu-west-2:376248598259:stack/eksctl-extravagant-outfit-1550669291-cluster/5eeea660-3513-11e9-a52c-0ad9e87c6998",
  StackName: "eksctl-extravagant-outfit-1550669291-cluster",
  StackStatus: "DELETE_FAILED",
  StackStatusReason: "The following resource(s) failed to delete: [InternetGateway, SubnetPublicEUWEST2A, VPC, VPCGatewayAttachment]. ",
  Tags: [{
      Key: "eksctl.cluster.k8s.io/v1alpha1/cluster-name",
      Value: "extravagant-outfit-1550669291"
    }]
}
[ℹ]  CloudTrail.events/eksctl-extravagant-outfit-1550669291-cluster[0] = {
  CloudTrailEvent: "{\"eventVersion\":\"1.05\",\"userIdentity\":{\"type\":\"IAMUser\",\"principalId\":\"AIDAIOCNXG4X7XCEGSVIC\",\"arn\":\"arn:aws:iam::376248598259:user/ilya\",\"accountId\":\"376248598259\",\"accessKeyId\":\"ASIAVPGRJ73ZXYXGFL67\",\"userName\":\"ilya\",\"sessionContext\":{\"attributes\":{\"mfaAuthenticated\":\"true\",\"creationDate\":\"2019-02-26T11:17:22Z\"}}},\"eventTime\":\"2019-02-26T11:33:22Z\",\"eventSource\":\"cloudformation.amazonaws.com\",\"eventName\":\"DeleteStack\",\"awsRegion\":\"eu-west-2\",\"sourceIPAddress\":\"89.197.152.162\",\"userAgent\":\"eksctl/{\\\"BuiltAt\\\":\\\"\\\",\\\"GitTag\\\":\\\"0.1.23\\\"} aws-sdk-go/1.14.0 (go1.11.5; darwin; amd64)\",\"requestParameters\":{\"stackName\":\"arn:aws:cloudformation:eu-west-2:376248598259:stack/eksctl-extravagant-outfit-1550669291-cluster/5eeea660-3513-11e9-a52c-0ad9e87c6998\"},\"responseElements\":null,\"requestID\":\"52d52009-39ba-11e9-b41a-ad391c940b6c\",\"eventID\":\"fd48d502-6df0-47c1-9d34-6f8d72c46b2d\",\"eventType\":\"AwsApiCall\",\"recipientAccountId\":\"376248598259\"}",
  EventId: "fd48d502-6df0-47c1-9d34-6f8d72c46b2d",
  EventName: "DeleteStack",
  EventSource: "cloudformation.amazonaws.com",
  EventTime: 2019-02-26 11:33:22 +0000 UTC,
  Resources: [{
      ResourceName: "arn:aws:cloudformation:eu-west-2:376248598259:stack/eksctl-extravagant-outfit-1550669291-cluster/5eeea660-3513-11e9-a52c-0ad9e87c6998",
      ResourceType: "AWS::CloudFormation::Stack"
    }],
  Username: "ilya"
}
[ℹ]  CloudTrail.events/eksctl-extravagant-outfit-1550669291-cluster[1] = {
  CloudTrailEvent: "{\"eventVersion\":\"1.05\",\"userIdentity\":{\"type\":\"IAMUser\",\"principalId\":\"AIDAIOCNXG4X7XCEGSVIC\",\"arn\":\"arn:aws:iam::376248598259:user/ilya\",\"accountId\":\"376248598259\",\"accessKeyId\":\"ASIAVPGRJ73ZZUXFXUWW\",\"userName\":\"ilya\",\"sessionContext\":{\"attributes\":{\"mfaAuthenticated\":\"true\",\"creationDate\":\"2019-02-22T09:36:55Z\"}}},\"eventTime\":\"2019-02-22T17:16:04Z\",\"eventSource\":\"cloudformation.amazonaws.com\",\"eventName\":\"DeleteStack\",\"awsRegion\":\"eu-west-2\",\"sourceIPAddress\":\"81.109.206.46\",\"userAgent\":\"eksctl/{\\\"BuiltAt\\\":\\\"\\\",\\\"GitTag\\\":\\\"0.1.22\\\"} aws-sdk-go/1.14.0 (go1.11.5; darwin; amd64)\",\"requestParameters\":{\"stackName\":\"arn:aws:cloudformation:eu-west-2:376248598259:stack/eksctl-extravagant-outfit-1550669291-cluster/5eeea660-3513-11e9-a52c-0ad9e87c6998\"},\"responseElements\":null,\"requestID\":\"88a235ed-36c5-11e9-ab0e-737097bcfc77\",\"eventID\":\"24070ae0-d51f-40b6-b416-dd3be988c0d7\",\"eventType\":\"AwsApiCall\",\"recipientAccountId\":\"376248598259\"}",
  EventId: "24070ae0-d51f-40b6-b416-dd3be988c0d7",
  EventName: "DeleteStack",
  EventSource: "cloudformation.amazonaws.com",
  EventTime: 2019-02-22 17:16:04 +0000 UTC,
  Resources: [{
      ResourceName: "arn:aws:cloudformation:eu-west-2:376248598259:stack/eksctl-extravagant-outfit-1550669291-cluster/5eeea660-3513-11e9-a52c-0ad9e87c6998",
      ResourceType: "AWS::CloudFormation::Stack"
    }],
  Username: "ilya"
}
[ℹ]  CloudTrail.events/eksctl-extravagant-outfit-1550669291-cluster[2] = {
  CloudTrailEvent: "{\"eventVersion\":\"1.05\",\"userIdentity\":{\"type\":\"IAMUser\",\"principalId\":\"AIDAIOCNXG4X7XCEGSVIC\",\"arn\":\"arn:aws:iam::376248598259:user/ilya\",\"accountId\":\"376248598259\",\"accessKeyId\":\"ASIAVPGRJ73ZQ7PNYS3A\",\"userName\":\"ilya\",\"sessionContext\":{\"attributes\":{\"mfaAuthenticated\":\"true\",\"creationDate\":\"2019-02-20T06:03:08Z\"}}},\"eventTime\":\"2019-02-20T13:28:12Z\",\"eventSource\":\"cloudformation.amazonaws.com\",\"eventName\":\"CreateStack\",\"awsRegion\":\"eu-west-2\",\"sourceIPAddress\":\"89.197.152.162\",\"userAgent\":\"eksctl/{\\\"BuiltAt\\\":\\\"\\\",\\\"GitTag\\\":\\\"0.1.22\\\"} aws-sdk-go/1.14.0 (go1.11.4; darwin; amd64)\",\"requestParameters\":{\"capabilities\":[\"CAPABILITY_IAM\"],\"tags\":[{\"value\":\"extravagant-outfit-1550669291\",\"key\":\"eksctl.cluster.k8s.io/v1alpha1/cluster-name\"}],\"stackName\":\"eksctl-extravagant-outfit-1550669291-cluster\"},\"responseElements\":{\"stackId\":\"arn:aws:cloudformation:eu-west-2:376248598259:stack/eksctl-extravagant-outfit-1550669291-cluster/5eeea660-3513-11e9-a52c-0ad9e87c6998\"},\"requestID\":\"5ee61b6a-3513-11e9-bc45-979daf267fbc\",\"eventID\":\"4b6329c3-0ab6-44ad-ba71-45537d53eb34\",\"eventType\":\"AwsApiCall\",\"recipientAccountId\":\"376248598259\"}",
  EventId: "4b6329c3-0ab6-44ad-ba71-45537d53eb34",
  EventName: "CreateStack",
  EventSource: "cloudformation.amazonaws.com",
  EventTime: 2019-02-20 13:28:12 +0000 UTC,
  Resources: [{
      ResourceName: "arn:aws:cloudformation:eu-west-2:376248598259:stack/eksctl-extravagant-outfit-1550669291-cluster/5eeea660-3513-11e9-a52c-0ad9e87c6998",
      ResourceType: "AWS::CloudFormation::Stack"
    }],
  Username: "ilya"
}
$

It doesn't need to be so verbose, there must be a simple way to present this data better. We can begin by adding eksctl utils describe-stacks [--events] [--trail], and later incorporate it in eksctl describe cluster.

@agbanagba
Copy link
Contributor

Seems this has been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/general-cli good first issue Good for newcomers help wanted Extra attention is needed kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants