def create_gg_config_file()

in gg_group_setup/cmd.py [0:0]


    def create_gg_config_file(self,thing_name,thing_arn,iot_host,gg_host):
         
        gg_config = {
            "coreThing" : {
                "caPath" : "root.ca.pem",
                "certPath" : thing_name+".pem",
                "keyPath" : thing_name+".prv",
                "thingArn" : thing_arn,
                "iotHost" : iot_host,
                "ggHost" : gg_host,
                "keepAlive" : 600
            },
            "runtime" : {
                "cgroup" : {
                "useSystemd" : "yes"
                },
                "allowFunctionsToRunAsRoot" : "yes"
            },
            "managedRespawn" : False,
            "crypto" : {
                "principals" : {
                "SecretsManager" : {
                    "privateKeyPath" : "file:///greengrass/certs/"+thing_name+".prv"
                },
                "IoTCertificate" : {
                    "privateKeyPath" : "file:///greengrass/certs/"+thing_name+".prv",
                    "certificatePath" : "file:///greengrass/certs/"+thing_name+".pem"
                }
                },
                "caPath" : "file:///greengrass/certs/root.ca.pem"
            }
            }
        return gg_config