Giter Site home page Giter Site logo

opsworks's Issues

OpsWorks

Create Stack

aws opsworks create-stack --name Test2 --stack-region us-east-1 --service-role-arn arn:aws:iam::811769099702:role/aws-opsworks-service-role --default-instance-profile-arn arn:aws:iam::811769099702:instance-profile/aws-opsworks-ec2-role
{
    "StackId": "cc011b3e-9e45-4e68-a0b7-b88147ab33d5"
}

Describe Stack

 aws opsworks describe-stacks
{
    "Stacks": [
        {
            "ServiceRoleArn": "arn:aws:iam::811769099702:role/aws-opsworks-service-role",
            "StackId": "cc011b3e-9e45-4e68-a0b7-b88147ab33d5",
            "DefaultRootDeviceType": "instance-store",
            "Name": "Test2",
            "ConfigurationManager": {
                "Version": "11.4",
                "Name": "Chef"
            },
            "UseCustomCookbooks": false,
            "Region": "us-east-1",
            "DefaultInstanceProfileArn": "arn:aws:iam::811769099702:instance-profile/aws-opsworks-ec2-role",
            "CustomCookbooksSource": {},
            "DefaultAvailabilityZone": "us-east-1a",
            "HostnameTheme": "Layer_Dependent",
            "Attributes": {
                "Color": null
            },
            "DefaultOs": "Ubuntu 12.04 LTS",
            "CreatedAt": "2013-11-25T22:15:33+00:00"
        }
    ]
}

Create Layer

aws opsworks create-layer --stack-id cc011b3e-9e45-4e68-a0b7-b88147ab33d5 --type web --name web --shortname web
{
    "LayerId": "69518781-70ed-45a1-beef-25d3d0628c1c"
}

Create App

aws opsworks create-app --stack-id cc011b3e-9e45-4e68-a0b7-b88147ab33d5 --type static --name hello --app-source Type=git,Url=https://github.com/dreadknot/OpsWorks.git
{
    "AppId": "b037ccb8-8dbc-458a-85ef-bc8242538626"
}

Update App

aws opsworks update-app --app-id b037ccb8-8dbc-458a-85ef-bc8242538626 --app-source Type=git,Url=https://github.com/dreadknot/OpsWorks.git

Create Instance

aws opsworks create-instance --stack-id cc011b3e-9e45-4e68-a0b7-b88147ab33d5 --layer-ids 69518781-70ed-45a1-beef-25d3d0628c1c --instance-type t1.micro --root-device-type ebs --availability-zone us-east-1e
{
    "InstanceId": "dea9895c-e25f-4404-b880-4fb1e41fe7d5"
}

Describe Instance

aws opsworks describe-instances --stack-id cc011b3e-9e45-4e68-a0b7-b88147ab33d5
{
    "Instances": [
        {
            "PrivateDns": "ip-10-28-239-11.ec2.internal",
            "SshHostRsaKeyFingerprint": "89:30:cb:49:ec:a6:6d:78:1a:3e:aa:e2:01:bd:44:df",
            "SshHostDsaKeyFingerprint": "52:8f:d8:01:26:dc:d4:e3:ca:95:ad:85:73:28:75:95",
            "Status": "online",
            "StackId": "cc011b3e-9e45-4e68-a0b7-b88147ab33d5",
            "InstanceId": "dea9895c-e25f-4404-b880-4fb1e41fe7d5",
            "RootDeviceVolumeId": "vol-aece65e3",
            "InstanceProfileArn": "arn:aws:iam::811769099702:instance-profile/aws-opsworks-ec2-role",
            "InstanceType": "t1.micro",
            "CreatedAt": "2013-11-26T19:24:10+00:00",
            "Hostname": "1",
            "Ec2InstanceId": "i-fbf6ee82",
            "PublicDns": "ec2-54-205-62-225.compute-1.amazonaws.com",
            "SecurityGroupIds": [],
            "Architecture": "x86_64",
            "RootDeviceType": "ebs",
            "InstallUpdatesOnBoot": true,
            "Os": "Ubuntu 12.04 LTS",
            "AvailabilityZone": "us-east-1e",
            "PrivateIp": "10.28.239.11",
            "PublicIp": "54.205.62.225",
            "LayerIds": [
                "69518781-70ed-45a1-beef-25d3d0628c1c"
            ]
        }
    ]
}

Start Instance

aws opsworks start-instance --instance-id dea9895c-e25f-4404-b880-4fb1e41fe7d5

Stop Instance

aws opsworks stop-instance --instance-id dea9895c-e25f-4404-b880-4fb1e41fe7d5

Delete Instance

aws opsworks delete-instance --instance-id 51d702c8-f326-47b3-9bbf-5f7d99a37c0f

Create Deployment

aws opsworks create-deployment  --stack-id cc011b3e-9e45-4e68-a0b7-b88147ab33d5 --app-id b037ccb8-8dbc-458a-85ef-bc8242538626 --command '{"Name":"deploy"}' --comment AWSCLI
{
    "DeploymentId": "8e467bb4-6271-4842-81c4-01a3e0449425"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.