. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 52.223.31.75  /  Your IP : 172.31.32.98   [ Reverse IP ]
Web Server : Apache/2.4.66 () OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux ip-172-31-14-81.eu-central-1.compute.internal 4.14.281-212.502.amzn2.x86_64 #1 SMP Thu May 26 09:52:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
Domains : 4 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python2.7/site-packages/awscli/examples/fms/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python2.7/site-packages/awscli/examples/fms/put-policy.rst
**To create a Firewall Manager policy**

The following ``put-policy`` example creates a Firewall Manager security group policy. ::

    aws fms put-policy \
        --cli-input-json file://policy.json
         
Contents of ``policy.json``::

    {
        "Policy": {
            "PolicyName": "test",
            "SecurityServicePolicyData": {
                "Type": "SECURITY_GROUPS_USAGE_AUDIT",
                "ManagedServiceData": "{\"type\":\"SECURITY_GROUPS_USAGE_AUDIT\",\"deleteUnusedSecurityGroups\":false,\"coalesceRedundantSecurityGroups\":true}"
            },
            "ResourceType": "AWS::EC2::SecurityGroup",
            "ResourceTags": [],
            "ExcludeResourceTags": false,
            "RemediationEnabled": false
        },
        "TagList": [
            {
                "Key": "foo",
                "Value": "foo"
            }
        ]
    }

Output::

    {
        "Policy": {
            "PolicyId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "PolicyName": "test",
            "PolicyUpdateToken": "1:X9QGexP7HASDlsFp+G31Iw==",
            "SecurityServicePolicyData": {
                "Type": "SECURITY_GROUPS_USAGE_AUDIT",
                "ManagedServiceData": "{\"type\":\"SECURITY_GROUPS_USAGE_AUDIT\",\"deleteUnusedSecurityGroups\":false,\"coalesceRedundantSecurityGroups\":true,\"optionalDelayForUnusedInMinutes\":null}"
            },
            "ResourceType": "AWS::EC2::SecurityGroup",
            "ResourceTags": [],
            "ExcludeResourceTags": false,
            "RemediationEnabled": false
        },
        "PolicyArn": "arn:aws:fms:us-west-2:123456789012:policy/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
    }

For more information, see `Working with AWS Firewall Manager Policies <https://docs.aws.amazon.com/waf/latest/developerguide/working-with-policies.html>`__ in the *AWS WAF, AWS Firewall Manager, and AWS Shield Advanced Developer Guide*.

Anon7 - 2022
AnonSec Team