How to change an EC2 security group?

I’d like the moment().fromNow() functionality, but when the date is close it is too precise – ex. I don’t want it to show ‘in 3 hours’ but ‘today’ – so basically with a ‘daily’ precision.

I tried using the moment().calendar() function, it doesn’t format if the date difference is more than 1 day

4 Answers

  • #45
    Up
    2
    Down

    I’d like the moment().fromNow() functionality, but when the date is close it is too precise – ex. I don’t want it to show ‘in 3 hours’ but ‘today’ – so basically with a ‘daily’ precision.

    I tried using the moment().calendar() function, it doesn’t format if the date difference is more than 1 day

    #135
    Up
    4
    Down

    test

    #138
    Up
    3
    Down

    test

    #143
    Up
    2
    Down

    test3

    • This reply was modified 3 months, 1 week ago by navin_test.
    #313
    Up
    0
    Down

    You can change the security groups when the instance is in the running or stopped state.

    To change the security groups for an instance using the console

    1. Open the Amazon EC2 console.

    2. In the navigation pane, choose Instances.

    3. Select your instance, and then choose Actions, Security, Change security groups.

    4. For Associated security groups, select a security group from the list and choose Add security group.

    To remove an already associated security group, choose Remove for that security group.

    5.Choose Save.

    For more information, Please follow this link: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/working-with-security-groups.html#changing-security-group

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.